fix(Core/Script): Kargath should prevent adds spawn on death (#16388)

This commit is contained in:
Angelo Venturini
2023-05-28 13:28:35 -03:00
committed by GitHub
parent 6670cd38fe
commit 0755f8cde3

View File

@@ -126,6 +126,8 @@ struct boss_warchief_kargath_bladefist : public BossAI
{
Talk(SAY_DEATH);
BossAI::JustDied(killer);
if (Creature* warchiefPortal = instance->GetCreature(DATA_WARCHIEF_PORTAL))
warchiefPortal->AI()->SetData(DATA_RESET_FIGHT, 0);
if (instance)
{
if (Creature* executioner = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_EXECUTIONER)))