- Possible fix for #1769
- Fixed all possible (even unexpected) crashes when AI looses active hero
Add new general method for battle stack access
Use new battleGetStacksIf method
Tweak death ripple immunity.
handleSpellCasting: Handle immunity before RESISTANCE. Now immune creatures shouldnt show resisted animation
Just remove hardcoded targetting for DEATH_RIPPLE & DESTROY_UNDED.
It will now affect all creatures (massive, non smart). Immunities are handled separately.
Made onlyAlive flag a part of TargetInfo
Merge and simplify resistance calculation
Remove more hardcoded immunity handling.
* ANIMATE_DEAD already limited to UNDED
* make DEATH_STARE immunties absolute