mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Creature/AI: Reset CoolDowns on evade
Closes #24008
(cherry picked from commit cb11ad97fb)
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Player.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "SpellHistory.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include "Vehicle.h"
|
||||
#include "World.h"
|
||||
@@ -315,6 +316,7 @@ bool CreatureAI::_EnterEvadeMode(EvadeReason /*why*/)
|
||||
me->SetLastDamagedTime(0);
|
||||
me->SetCannotReachTarget(false);
|
||||
me->DoNotReacquireSpellFocusTarget();
|
||||
me->GetSpellHistory()->ResetAllCooldowns();
|
||||
EngagementOver();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user