fix(Core): Freeze on Lord Jaraxxus (#12616)

This commit is contained in:
Angelo Venturini
2022-08-03 12:25:21 -03:00
committed by GitHub
parent e6dd5d3e22
commit 0f36736d42

View File

@@ -118,11 +118,11 @@ public:
if( pInstance )
pInstance->SetData(TYPE_JARAXXUS, NOT_STARTED);
// checked for safety
while( Creature* c = me->FindNearestCreature(NPC_INFERNAL_VOLCANO, 500.0f, true) )
c->DespawnOrUnsummon();
while( Creature* c = me->FindNearestCreature(NPC_NETHER_PORTAL, 500.0f, true) )
c->DespawnOrUnsummon();
std::list<Creature*> creatures;
me->GetCreatureListWithEntryInGrid(creatures, NPC_INFERNAL_VOLCANO, 500.f);
me->GetCreatureListWithEntryInGrid(creatures, NPC_NETHER_PORTAL, 500.f);
for (Creature* creature : creatures)
creature->DespawnOrUnsummon();
}
void EnterCombat(Unit* /*who*/) override