Proper case for olympiad start variable.

This commit is contained in:
MobiusDevelopment
2021-04-08 20:15:43 +00:00
parent 8962ec67be
commit 2b631bb377
21 changed files with 107 additions and 107 deletions

View File

@@ -476,7 +476,7 @@ public class PlayerInstance extends Playable
/** Olympiad */
private boolean _inOlympiadMode = false;
private boolean _OlympiadStart = false;
private boolean _olympiadStart = false;
private int _olympiadGameId = -1;
private int _olympiadSide = -1;
/** Olympiad buff count. */
@@ -4134,7 +4134,7 @@ public class PlayerInstance extends Playable
party.broadcastToPartyMembers(this, new PartySmallWindowUpdate(this));
}
if (_inOlympiadMode && _OlympiadStart && (needCpUpdate || needHpUpdate))
if (_inOlympiadMode && _olympiadStart && (needCpUpdate || needHpUpdate))
{
Collection<PlayerInstance> players = World.getInstance().getVisibleObjects(this, PlayerInstance.class);
if ((players != null) && !players.isEmpty())
@@ -8399,7 +8399,7 @@ public class PlayerInstance extends Playable
// Check if the attacker is in olympia and olympia start
if (attacker.isPlayer() && attacker.getActingPlayer().isInOlympiadMode())
{
return _inOlympiadMode && _OlympiadStart && (((PlayerInstance) attacker).getOlympiadGameId() == getOlympiadGameId());
return _inOlympiadMode && _olympiadStart && (((PlayerInstance) attacker).getOlympiadGameId() == getOlympiadGameId());
}
// Check if the attacker is in TvT and TvT is started
@@ -8808,7 +8808,7 @@ public class PlayerInstance extends Playable
return false;
}
if (_inOlympiadMode && !_OlympiadStart)
if (_inOlympiadMode && !_olympiadStart)
{
// if PlayerInstance is in Olympia and the match isn't already start, send a Server->Client packet ActionFailed
sendPacket(ActionFailed.STATIC_PACKET);
@@ -9755,12 +9755,12 @@ public class PlayerInstance extends Playable
public void setOlympiadStart(boolean value)
{
_OlympiadStart = value;
_olympiadStart = value;
}
public boolean isOlympiadStart()
{
return _OlympiadStart;
return _olympiadStart;
}
public boolean isHero()