CancelOnTakeDamage for "cast" mechanic does not work for every possible damage sources.
Summary
I made a skill that should be cancelled when the caster (a player) is hit by something, but it seems to only works for mob entities like Zombies, and not for every kind of damage source.
Steps to reproduce
- cast{onCast=skill_cast_success;cotd=true;onInterrupted=skill_cast_fail;duration=60} @self
1- Cast it on myself 2- kiss a cactus during the warm-up
Current behavior
The skill is not interrupted when i'm getting damaged by a cactus or a sweet berry bush for example, and continue as normal. The skill DOES get interrupted when hit by a zombie.
Intended correct behavior The skill should be interrupted by any damage source because the caster (me) received damage.
Proposed fixes Make it work for any type of damage received