state(); if data.hp.val <= 0 { c_deselectunit(id); c_deleteunit(pos.x, pos.y, id); se_play(se_kill); } //depth = x;