fix(Core): Freeze on Lord Jaraxxus (#12616)
This commit is contained in:
parent
e6dd5d3e22
commit
0f36736d42
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue