From d34899097f11ccb97612ae2febb50c11b55acbb0 Mon Sep 17 00:00:00 2001 From: arrai Date: Mon, 24 Nov 2008 19:50:35 +0100 Subject: [PATCH] [6847] Prevented mounted, stealthed or invisible players from capturing bases in EOTS --- src/game/BattleGroundEY.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/BattleGroundEY.cpp b/src/game/BattleGroundEY.cpp index 18d08595d..241ad5b98 100644 --- a/src/game/BattleGroundEY.cpp +++ b/src/game/BattleGroundEY.cpp @@ -173,7 +173,7 @@ void BattleGroundEY::CheckSomeoneJoinedPoint() ++j; continue; } - if (plr->isAlive() && plr->IsWithinDistInMap(obj, BG_EY_POINT_RADIUS)) + if (plr->isAllowUseBattleGroundObject() && plr->IsWithinDistInMap(obj, BG_EY_POINT_RADIUS)) { //player joined point! //show progress bar @@ -216,7 +216,7 @@ void BattleGroundEY::CheckSomeoneLeftPoint() ++j; continue; } - if (!plr->isAlive() || !plr->IsWithinDistInMap(obj, BG_EY_POINT_RADIUS)) + if (!plr->isAllowUseBattleGroundObject() || !plr->IsWithinDistInMap(obj, BG_EY_POINT_RADIUS)) //move player out of point (add him to players that are out of points { m_PlayersNearPoint[EY_POINTS_MAX].push_back(m_PlayersNearPoint[i][j]); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index bae4de095..a0d7bb8a5 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "6846" + #define REVISION_NR "6847" #endif // __REVISION_NR_H__