Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
pCreatureTarget->AI()->AttackStart(GetCaster());
|
||||
|
||||
if (_despawnTime)
|
||||
pCreatureTarget->ForcedDespawn(_despawnTime);
|
||||
pCreatureTarget->DespawnOrUnsummon(_despawnTime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ public:
|
||||
if (uiNewEntry)
|
||||
{
|
||||
pCreatureTarget->UpdateEntry(uiNewEntry);
|
||||
pCreatureTarget->ForcedDespawn(DESPAWN_TIME);
|
||||
pCreatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -460,7 +460,7 @@ public:
|
||||
}
|
||||
pCaster->CastSpell(pCaster, spellId, true, castItem);
|
||||
pCaster->CastSpell(pCaster, SPELL_ROBOT_KILL_CREDIT, true);
|
||||
pTarget->ForcedDespawn();
|
||||
pTarget->DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
void Register()
|
||||
@@ -652,7 +652,7 @@ public:
|
||||
{
|
||||
pPlayer->CastSpell(pPlayer, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true, NULL);
|
||||
pPlayer->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER, 0);
|
||||
pTarget->ForcedDespawn();
|
||||
pTarget->DespawnOrUnsummon();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user