mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[6847] Prevented mounted, stealthed or invisible players from capturing bases in EOTS
This commit is contained in:
parent
64fd2dc881
commit
d34899097f
2 changed files with 3 additions and 3 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue