diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 57842f1832..bbb6f722e3 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14138,7 +14138,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 0ec529e162..b0bfa71b09 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14188,7 +14188,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 864fb61d74..1755c69d50 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14202,7 +14202,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_5.0_Salvation/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_5.0_Salvation/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index b01c515d23..b7702ed678 100644 --- a/L2J_Mobius_5.0_Salvation/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_5.0_Salvation/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14191,7 +14191,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_5.5_EtinasFate/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_5.5_EtinasFate/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 555ef49097..e1b8d57d34 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_5.5_EtinasFate/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14191,7 +14191,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_6.0_Fafurion/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_6.0_Fafurion/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 74511439d0..8010f04293 100644 --- a/L2J_Mobius_6.0_Fafurion/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_6.0_Fafurion/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -14197,7 +14197,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 10f0630225..265fc6e442 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -13963,7 +13963,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 60ca3887e7..04406690c1 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -13970,7 +13970,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index ccc4852095..e16391e76c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -13954,7 +13954,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; } diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 337c27ed73..d302cdb196 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/com/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -13954,7 +13954,7 @@ public final class PlayerInstance extends Playable { canBeRewarded = true; // Reset index if max is reached. - if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) + if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount()) { rewardIndex = 0; }