added script hook for gameobject's destroyed event

--HG--
branch : trunk
This commit is contained in:
Rat
2010-06-03 14:29:04 +02:00
parent 042971e7ff
commit 3c05d4d544
3 changed files with 11 additions and 1 deletions

View File

@@ -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())