Core/Creature: Implement aggro grace period

Port From (https://github.com/TrinityCore/TrinityCore/commit/26d1337461114506ca57e2265d3dc5e96fd08f82)
This commit is contained in:
Hondacrx
2025-05-25 10:39:42 -04:00
parent de59110fe8
commit 1ea98d4f51
4 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -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);
}