Let's fix the fear pathing flags right away after SE_ImmuneFleeing

This speeds up the response to spells like Call of Challenge
Before it would fix the flags the next tick, which makes the spell
mostly useless
This commit is contained in:
Michael Cook (mackal) 2016-09-04 20:59:39 -04:00
parent 739b1bfaa3
commit d0bb3047f0

View File

@ -2529,6 +2529,8 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
case SE_ImmuneFleeing:
new_bonus->ImmuneToFlee = true;
if (currently_fleeing) // lets update shit now instead of next tick
ProcessFlee();
break;
case SE_DelayDeath: