aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2013-01-12 15:01:53 +0100
committerGacko <gacko28@gmx.de>2013-01-12 15:01:53 +0100
commit4d9fa7f22c066010ff3b53c54d6f2b89c016e354 (patch)
tree6df7805eb047351ac732c4f36bea081b08dfa4d9 /src
parentcc5e40e8eeefdeadec567458ba0e0771ad8f1f6a (diff)
Core/Spell: Gordunni Trap
Casting npc of the trap should not remove the summoned chest on despawn. Solves #4811
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Kalimdor/zone_feralas.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Kalimdor/zone_feralas.cpp b/src/server/scripts/Kalimdor/zone_feralas.cpp
index b2326de86ab..2d5b383cefc 100644
--- a/src/server/scripts/Kalimdor/zone_feralas.cpp
+++ b/src/server/scripts/Kalimdor/zone_feralas.cpp
@@ -221,7 +221,10 @@ class spell_gordunni_trap : public SpellScriptLoader
{
if (Unit* caster = GetCaster())
if (GameObject* chest = caster->SummonGameObject(GO_GORDUNNI_DIRT_MOUND, caster->GetPositionX(), caster->GetPositionY(), caster->GetPositionZ(), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0))
+ {
chest->SetSpellId(GetSpellInfo()->Id);
+ caster->RemoveGameObject(chest, false);
+ }
}
void Register()