Core/Creature: Implement aggro grace period
Port From (https://github.com/TrinityCore/TrinityCore/commit/26d1337461114506ca57e2265d3dc5e96fd08f82)
This commit is contained in:
@@ -102,7 +102,7 @@ namespace Game.AI
|
||||
if (me.IsEngaged())
|
||||
return;
|
||||
|
||||
if (me.HasReactState(ReactStates.Aggressive) && me.CanStartAttack(who, false))
|
||||
if (me.HasReactState(ReactStates.Aggressive) && me.CanStartAttack(who, false) && (me.IsAggroGracePeriodExpired() || me.GetMap().Instanceable()))
|
||||
me.EngageWithTarget(who);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user