mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +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]);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "6846"
|
||||
#define REVISION_NR "6847"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue