aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-13 23:36:38 +0200
committerQAston <none@none>2009-07-13 23:36:38 +0200
commit814f66db9125b0c91a57833c3abc2426eb2ca1c4 (patch)
tree6662a490ac69e78da12fa9eeea0964b9d406b77e /src/bindings/scripts
parent310f15e546c2525e2fbef2fbea57521e4cc8b78b (diff)
*Fix Defensive Tactics.
*Correctly delete gameobject in BT_Najentus script. --HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts')
-rw-r--r--src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
index f70b82c0e3c..8b185318b8a 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
@@ -201,6 +201,9 @@ bool GOHello_go_najentus_spine(Player *player, GameObject* _GO)
{
player->CastSpell(player, SPELL_CREATE_NAJENTUS_SPINE, true);
_GO->SetLootState(GO_NOT_READY);
+ if (_GO->GetOwnerGUID())
+ if (Unit * owner = _GO->GetOwner())
+ owner->RemoveGameObject(_GO, false);
_GO->Delete();
}
return true;