aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2013-01-13 16:15:35 +0100
committerGacko <gacko28@gmx.de>2013-01-13 16:15:35 +0100
commit8be3d4cc80f5c6d9f26bc8becb0296a3e67518ed (patch)
tree374f5b0e1dd46361d4eeb919d9e5e76792571da4 /src
parentc54fb9efb459590b8c0f1ddb0b5642473f6a8925 (diff)
Core/BG: Add workaround annotation and use exact coords
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp
index 076c68b5f76..b6452e76b5d 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp
@@ -259,9 +259,10 @@ void BattlegroundEY::UpdatePointStatuses()
this->EventTeamLostPoint(player, point);
}
+ /// @workaround The original AreaTrigger is covered by a bigger one and not triggered on client side.
if (point == FEL_REAVER && m_PointOwnedByTeam[point] == player->GetTeam())
if (m_FlagState && GetFlagPickerGUID() == player->GetGUID())
- if (player->GetDistance2d(2044.0f, 1730.0f) < 2.0f)
+ if (player->GetDistance(2044.0f, 1729.729f, 1190.03f) < 3.0f)
EventPlayerCapturedFlag(player, BG_EY_OBJECT_FLAG_FEL_REAVER);
}
}