aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorShauren <shauren.dev@gmail.com>2011-01-02 21:33:37 +0100
committerShauren <shauren.dev@gmail.com>2011-01-02 21:33:37 +0100
commit9c0cd63e933ece1a9b878b90103b305358202d25 (patch)
tree03f63fa2a44ea6af7c1989c0b7979ba28b3feb06 /src/server/scripts/Spells
parentc2f98606b2d0c33f13b55c07c4c0e55d3d959676 (diff)
Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 303eb9fa123..a9fa3a4928e 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -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();
}
}
}