mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core): Freeze on Lord Jaraxxus (#12616)
This commit is contained in:
@@ -118,11 +118,11 @@ public:
|
|||||||
if( pInstance )
|
if( pInstance )
|
||||||
pInstance->SetData(TYPE_JARAXXUS, NOT_STARTED);
|
pInstance->SetData(TYPE_JARAXXUS, NOT_STARTED);
|
||||||
|
|
||||||
// checked for safety
|
std::list<Creature*> creatures;
|
||||||
while( Creature* c = me->FindNearestCreature(NPC_INFERNAL_VOLCANO, 500.0f, true) )
|
me->GetCreatureListWithEntryInGrid(creatures, NPC_INFERNAL_VOLCANO, 500.f);
|
||||||
c->DespawnOrUnsummon();
|
me->GetCreatureListWithEntryInGrid(creatures, NPC_NETHER_PORTAL, 500.f);
|
||||||
while( Creature* c = me->FindNearestCreature(NPC_NETHER_PORTAL, 500.0f, true) )
|
for (Creature* creature : creatures)
|
||||||
c->DespawnOrUnsummon();
|
creature->DespawnOrUnsummon();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnterCombat(Unit* /*who*/) override
|
void EnterCombat(Unit* /*who*/) override
|
||||||
|
|||||||
Reference in New Issue
Block a user