Update to work with latest AzerothCore master

This commit is contained in:
郑佩茹
2022-07-27 10:15:08 -06:00
parent a5f1fc38a8
commit 29e14042e7
3 changed files with 7 additions and 16 deletions

View File

@@ -307,7 +307,7 @@ bool CreatureAI::_EnterEvadeMode(EvadeReason /*why*/)
me->SetLootRecipient(nullptr);
me->ResetPlayerDamageReq();
me->SetLastDamagedTime(0);
me->SetCannotReachTarget();
me->SetCannotReachTarget(true);
if (ZoneScript* zoneScript = me->GetZoneScript() ? me->GetZoneScript() : (ZoneScript*)me->GetInstanceScript())
zoneScript->OnCreatureEvade(me);