From 4d9fa7f22c066010ff3b53c54d6f2b89c016e354 Mon Sep 17 00:00:00 2001 From: Gacko Date: Sat, 12 Jan 2013 15:01:53 +0100 Subject: Core/Spell: Gordunni Trap Casting npc of the trap should not remove the summoned chest on despawn. Solves #4811 --- src/server/scripts/Kalimdor/zone_feralas.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/scripts/Kalimdor') 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() -- cgit v1.2.3