Core/Auras: Implement SpellAuraInterruptFlags2::StartOfEncounter

Port From (https://github.com/TrinityCore/TrinityCore/commit/15135ce16f76d1635fa5606c99822b60bced94bf)
This commit is contained in:
hondacrx
2023-05-21 17:17:00 -04:00
parent 40ff308573
commit fd377ebc0d
3 changed files with 16 additions and 5 deletions
@@ -407,6 +407,13 @@ namespace Game.BattleGrounds
SetStatus(BattlegroundStatus.InProgress);
SetStartDelayTime(StartDelayTimes[BattlegroundConst.EventIdFourth]);
foreach (var (guid, _) in GetPlayers())
{
Player player = Global.ObjAccessor.FindPlayer(guid);
if (player != null)
player.AtStartOfEncounter();
}
// Remove preparation
if (IsArena())
{