aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpp <none@none>2009-12-03 15:54:09 +0100
committerSpp <none@none>2009-12-03 15:54:09 +0100
commit83185d16a01560c8bf1084f7980242ac2e9bf4b8 (patch)
treefb596bf7b66d7cbd15a3d4ce69404d220e9d4fea
parentbf595a0fe3bfe73529741423045811cf29fbd6bc (diff)
Wintergrasp: Removal of hardcoded events (Titan relic)
--HG-- branch : trunk
-rw-r--r--src/game/Wintergrasp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp
index 3d7eaa5598c..81f3f600426 100644
--- a/src/game/Wintergrasp.cpp
+++ b/src/game/Wintergrasp.cpp
@@ -456,9 +456,9 @@ bool OPvPWintergrasp::SetupOutdoorPvP()
void OPvPWintergrasp::ProcessEvent(GameObject *obj, uint32 eventId)
{
- if (eventId == 19982)
+ if (obj->GetEntry() == 192829)
{
- if (isWarTime() && m_gate && m_gate->damageState == DAMAGE_DESTROYED)
+ if (obj->GetGOInfo()->goober.eventId == eventId && isWarTime() && m_gate && m_gate->damageState == DAMAGE_DESTROYED)
{
m_changeDefender = true;
m_timer = 0;