Core/Creatures: moved combat pulse into heartbeat handling and implemented CREATURE_STATIC_FLAG_2_FORCE_PARTY_MEMBERS_INTO_COMBAT

Port From (https://github.com/TrinityCore/TrinityCore/commit/11f32a2427caf7064947b03f3256e06d27fe6327)
This commit is contained in:
Hondacrx
2024-08-19 12:33:21 -04:00
parent 40ba30a61c
commit 5639a58a11
3 changed files with 44 additions and 35 deletions
-3
View File
@@ -550,7 +550,6 @@ namespace Game.AI
if (!me.IsAlive())
return;
me.SetCombatPulseDelay(0);
me.ResetLootMode();
_events.Reset();
summons.DespawnAll();
@@ -581,9 +580,7 @@ namespace Game.AI
instance.SetBossState(_bossId, EncounterState.InProgress);
}
me.SetCombatPulseDelay(5);
me.SetActive(true);
DoZoneInCombat();
ScheduleTasks();
}