yeah with how rpgmaker handles the combat process the skill deals damage before executing the function i gave the skill so when the squad dies it doesnt give the function enough time to play out before it ends the battle, not sure how to deal with it but ill figure it out eventually.
getting into another combat encounter or using a campfire should fix it i think