aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-21 16:12:30 -0500
committermegamage <none@none>2009-08-21 16:12:30 -0500
commit054e4cecebeee2f49a895e630611ef31ba793f06 (patch)
tree2bb157233dff2a0d1ae48cadafd0436005ef8869 /src/game/GameObject.cpp
parent7bb18efbbe5bb17887e9127f3a0e2e3ea681fcde (diff)
*Wintergrasp: give honor for every captured workshops in the end of the battle.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 7a10843af8c..8ca1b97ae2b 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -1490,7 +1490,7 @@ void GameObject::TakenDamage(uint32 damage)
SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_DAMAGED);
SetUInt32Value(GAMEOBJECT_DISPLAYID, m_goInfo->building.damagedDisplayId);
- EventInform(m_goInfo->building.intactEvent);
+ EventInform(m_goInfo->building.destroyedEvent);
}
}
}
@@ -1500,6 +1500,7 @@ void GameObject::Rebuild()
RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_DAMAGED + GO_FLAG_DESTROYED);
SetUInt32Value(GAMEOBJECT_DISPLAYID, m_goInfo->displayId);
m_goValue->building.health = m_goInfo->building.intactNumHits + m_goInfo->building.damagedNumHits;
+ EventInform(m_goInfo->building.rebuildingEvent);
}
void GameObject::EventInform(uint32 eventId)