Code
# HG changeset patch
# User InsteR
# Date 1338536041 -39600
# Node ID cfcd0d23427597df4d3c65ede437e2921d72daba
# Parent 735a41ff05c1d21798f052ae6ef30b85d1141a4d
Фикс флагов на БГ Ушелье Песни Войны.
diff -r 735a41ff05c1 -r cfcd0d234275 src/server/game/Battlegrounds/Zones/BattlegroundWS.cpp
--- a/src/server/game/Battlegrounds/Zones/BattlegroundWS.cpp Fri Jun 01 18:29:52 2012 +1100
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundWS.cpp Fri Jun 01 18:34:01 2012 +1100
@@ -482,7 +482,7 @@
}
//Alliance flag on ground(not in base) (returned or picked up again from ground!)
- if (GetFlagState(ALLIANCE) == BG_WS_FLAG_STATE_ON_GROUND && Source->IsWithinDistInMap(target_obj, 10))
+ if (GetFlagState(ALLIANCE) == BG_WS_FLAG_STATE_ON_GROUND && Source->IsWithinDistInMap(target_obj, 10) && target_obj->GetEntry() == 179785)
{
if (Source->GetTeam() == ALLIANCE)
{
@@ -516,7 +516,7 @@
}
//Horde flag on ground(not in base) (returned or picked up again)
- if (GetFlagState(HORDE) == BG_WS_FLAG_STATE_ON_GROUND && Source->IsWithinDistInMap(target_obj, 10))
+ if (GetFlagState(HORDE) == BG_WS_FLAG_STATE_ON_GROUND && Source->IsWithinDistInMap(target_obj, 10) && target_obj->GetEntry() == 179786)
{
if (Source->GetTeam() == HORDE)
{