diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 70b20e98aa..35120d28bf 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -324,8 +324,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1850,12 +1850,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 02e8c0eec5..79597f94f1 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -320,8 +320,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1796,12 +1796,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 02e8c0eec5..79597f94f1 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -320,8 +320,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1796,12 +1796,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 02e8c0eec5..79597f94f1 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -320,8 +320,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1796,12 +1796,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java index c953cfd504..d13ab61170 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1784,12 +1784,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java index c953cfd504..d13ab61170 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1784,12 +1784,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java index c953cfd504..d13ab61170 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1784,12 +1784,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 667afaa5e9..28d5bec096 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1795,12 +1795,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 667afaa5e9..28d5bec096 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1795,12 +1795,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 667afaa5e9..28d5bec096 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1795,12 +1795,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 1c1a0623a4..7e0d2e1d5b 100644 --- a/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -319,8 +319,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1795,12 +1795,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java index ce1b13c762..d40f31701f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -512,13 +512,10 @@ public class Attackable extends Npc } setChampion(false); - if (Config.CHAMPION_ENABLE) + // Set champion on next spawn. + if (Config.CHAMPION_ENABLE && !(this instanceof GrandBoss) && !(this instanceof RaidBoss) && (this instanceof Monster) /* && !getTemplate().isQuestMonster */ && (Config.CHAMPION_FREQUENCY > 0) && (getLevel() >= Config.CHAMP_MIN_LEVEL) && (getLevel() <= Config.CHAMP_MAX_LEVEL) && (Rnd.get(100) < Config.CHAMPION_FREQUENCY)) { - // Set champion on next spawn. - if (!(this instanceof GrandBoss) && !(this instanceof RaidBoss) && (this instanceof Monster) /* && !getTemplate().isQuestMonster */ && (Config.CHAMPION_FREQUENCY > 0) && (getLevel() >= Config.CHAMP_MIN_LEVEL) && (getLevel() <= Config.CHAMP_MAX_LEVEL) && (Rnd.get(100) < Config.CHAMPION_FREQUENCY)) - { - setChampion(true); - } + setChampion(true); } return true; @@ -2190,10 +2187,8 @@ public class Attackable extends Npc return; } - final int maxAbsorbLevel = getAbsorbLevel(); - int minAbsorbLevel = 0; - // If this is not a valid Attackable, clears the _absorbersList and just return + final int maxAbsorbLevel = getAbsorbLevel(); if (maxAbsorbLevel == 0) { resetAbsorbList(); @@ -2201,6 +2196,7 @@ public class Attackable extends Npc } // All boss mobs with maxAbsorbLevel 13 have minAbsorbLevel of 12 else 10 + int minAbsorbLevel = 0; if (maxAbsorbLevel > 10) { minAbsorbLevel = maxAbsorbLevel > 12 ? 12 : 10; @@ -2547,8 +2543,7 @@ public class Attackable extends Npc final double overhitExp = (overhitPercentage / 100) * normalExp; // Return the rounded ammount of exp points to be added to the player's normal exp reward - final long bonusOverhit = Math.round(overhitExp); - return bonusOverhit; + return Math.round(overhitExp); } @Override diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 5ed7ec28e7..395424663a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -513,13 +513,10 @@ public class Attackable extends Npc } setChampion(false); - if (Config.CHAMPION_ENABLE) + // Set champion on next spawn. + if (Config.CHAMPION_ENABLE && !(this instanceof GrandBoss) && !(this instanceof RaidBoss) && (this instanceof Monster) /* && !getTemplate().isQuestMonster */ && (Config.CHAMPION_FREQUENCY > 0) && (getLevel() >= Config.CHAMP_MIN_LEVEL) && (getLevel() <= Config.CHAMP_MAX_LEVEL) && (Rnd.get(100) < Config.CHAMPION_FREQUENCY)) { - // Set champion on next spawn. - if (!(this instanceof GrandBoss) && !(this instanceof RaidBoss) && (this instanceof Monster) /* && !getTemplate().isQuestMonster */ && (Config.CHAMPION_FREQUENCY > 0) && (getLevel() >= Config.CHAMP_MIN_LEVEL) && (getLevel() <= Config.CHAMP_MAX_LEVEL) && (Rnd.get(100) < Config.CHAMPION_FREQUENCY)) - { - setChampion(true); - } + setChampion(true); } return true; @@ -2542,10 +2539,8 @@ public class Attackable extends Npc return; } - final int maxAbsorbLevel = getAbsorbLevel(); - int minAbsorbLevel = 0; - // If this is not a valid Attackable, clears the _absorbersList and just return + final int maxAbsorbLevel = getAbsorbLevel(); if (maxAbsorbLevel == 0) { resetAbsorbList(); @@ -2553,6 +2548,7 @@ public class Attackable extends Npc } // All boss mobs with maxAbsorbLevel 13 have minAbsorbLevel of 12 else 10 + int minAbsorbLevel = 0; if (maxAbsorbLevel > 10) { minAbsorbLevel = maxAbsorbLevel > 12 ? 12 : 10; @@ -2899,8 +2895,7 @@ public class Attackable extends Npc final double overhitExp = (overhitPercentage / 100) * normalExp; // Return the rounded ammount of exp points to be added to the player's normal exp reward - final long bonusOverhit = Math.round(overhitExp); - return bonusOverhit; + return Math.round(overhitExp); } @Override diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 3115c8522d..5df1ec9de5 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -338,8 +338,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 3115c8522d..5df1ec9de5 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -338,8 +338,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java index e073052771..9a2e823e0f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -320,8 +320,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1788,12 +1788,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java index e073052771..9a2e823e0f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -320,8 +320,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1788,12 +1788,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java index ad476e3ea4..76d98d8839 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -320,8 +320,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1788,12 +1788,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java index ce4b2ed34d..a8e4d34c5f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -322,8 +322,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1809,12 +1809,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java index ce4b2ed34d..a8e4d34c5f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -322,8 +322,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1809,12 +1809,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java index ce4b2ed34d..a8e4d34c5f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -322,8 +322,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1809,12 +1809,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 8cd180efa7..9ff4316d6b 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -324,8 +324,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1842,12 +1842,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 56ed29e985..c74896206e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -323,8 +323,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1805,12 +1805,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 36bee5df13..3bcc0d3f0a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -328,8 +328,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1810,12 +1810,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) { diff --git a/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 9d9ff4017c..5d7268e146 100644 --- a/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -328,8 +328,8 @@ public class Attackable extends Npc static class PartyContainer { - Party party; - long damage = 0L; + public Party party; + public long damage; public PartyContainer(Party party, long damage) { @@ -1810,12 +1810,11 @@ public class Attackable extends Npc if (object == null) { final WorldObject target = getTarget(); - final Map aggroList = _aggroList; - if ((target != null) && (aggroList != null)) + if (target != null) { - aggroList.remove(target); + _aggroList.remove(target); } - if ((aggroList != null) && aggroList.isEmpty()) + if (_aggroList.isEmpty()) { if (getAI() instanceof AttackableAI) {