Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon

This commit is contained in:
Shauren
2011-01-02 21:33:37 +01:00
parent c2f98606b2
commit 9c0cd63e93
66 changed files with 153 additions and 194 deletions
+4 -4
View File
@@ -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();
}
}
}