aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-06-03 14:29:04 +0200
committerRat <none@none>2010-06-03 14:29:04 +0200
commit3c05d4d54454df50de16fb32e702ea09397675d4 (patch)
tree6c485b98ad8099ef96da030ae306a93b63f7c6e4 /src/game/GameObject.cpp
parent042971e7ffdfe8848b2aa837da6bc06d1e3e8776 (diff)
added script hook for gameobject's destroyed event
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 6eb0b482d80..d0591b7e9fa 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -1610,6 +1610,7 @@ void GameObject::TakenDamage(uint32 damage, Unit *who)
if (BattleGround* bg = pwho->GetBattleGround())
bg->DestroyGate(pwho, this, m_goInfo->building.destroyedEvent);
hitType = BG_OBJECT_DMG_HIT_TYPE_JUST_DESTROYED;
+ sScriptMgr.GODestroyed(pwho, this, m_goInfo->building.destroyedEvent);
}
if (pwho)
if (BattleGround* bg = pwho->GetBattleGround())