If the other damage thing suggested doesn't work, then if you know that the unit is invulnerable, why not make it vulnerable, do damage, make invulnerable again?
If you don't know if the unit is or not, just do the damage, see if it has done it, then if not, make vulnerable, damage, invulnerable. |