From ce95ac481fc0d89dff6fa1ab01a0319ddb58e94d Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 24 Jul 2017 23:03:31 +0100 Subject: [PATCH] Bug fixes --- .../core/achievement/Achievement.java | 2 +- .../achievement/ui/page/AchievementPage.java | 4 +- .../game/core/damage/CustomDamageEvent.java | 11 ++++-- .../games/castlesiegenew/CastleSiegeKing.java | 3 +- .../games/castlesiegenew/CastleSiegeNew.java | 18 +++++++++ .../castlesiegenew/kits/KitHumanPaladin.java | 2 + .../castlesiegenew/kits/KitUndeadArcher.java | 1 + .../kits/KitUndeadSummoner.java | 7 ++-- .../castlesiegenew/perks/PerkMobPotions.java | 37 +++++++++++++------ 9 files changed, 63 insertions(+), 22 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/achievement/Achievement.java b/Plugins/Mineplex.Core/src/mineplex/core/achievement/Achievement.java index a6b7c6157..b90760eee 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/achievement/Achievement.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/achievement/Achievement.java @@ -465,7 +465,7 @@ public enum Achievement CASTLE_SIEGE_TNT_KILLER("Defusal Squadron", 0, new String[]{"Castle Siege.TNTKiller"}, - new String[]{"Kill 5 TNT Carriers in One Game as Defense"}, + new String[]{"Kill 5 TNT Carriers in One Game as Defenders"}, new int[][]{ new int[]{0,0,7000}}, new int[]{1}, "", diff --git a/Plugins/Mineplex.Core/src/mineplex/core/achievement/ui/page/AchievementPage.java b/Plugins/Mineplex.Core/src/mineplex/core/achievement/ui/page/AchievementPage.java index 2bb1180d9..e5d931a7c 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/achievement/ui/page/AchievementPage.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/achievement/ui/page/AchievementPage.java @@ -58,7 +58,7 @@ public class AchievementPage extends ShopPageBase achievements = getAchievements(); - int currentIndex = ACHIEVEMENT_MIDDLE_INDEX - (achievements.size() / 2); + int currentIndex = Math.max(ACHIEVEMENT_MIDDLE_INDEX - (achievements.size() / 2), 27); boolean hasAllAchievements = true; int achievementCount = 0; boolean overflow = false; @@ -180,7 +180,7 @@ public class AchievementPage extends ShopPageBase