Core/Spell: Gordunni Trap
Casting npc of the trap should not remove the summoned chest on despawn. Solves #4811
This commit is contained in:
1 parent
cc5e40e8ee
commit
4d9fa7f22c
1 file changed
+3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user