Hi, Blink
I think maybe where you got my.passable = on;
should be in the while loop.
Code:
while (my.skill22 < 80) // the enemy is dead
{
ent_animate(me,"death", my.skill22, ANM_CYCLE); // play death frames animation
my.skill22 += 1 * time_step; // "death" animation speed
my.passable = on; // the corpse can't be hit by the sword from now on
wait (1);
}