Prevent needles calculations by checking first if NPC is champion.

This commit is contained in:
MobiusDevelopment
2019-08-25 21:10:48 +00:00
parent 4e87bb80e6
commit 23c43999ed
2 changed files with 5 additions and 5 deletions

View File

@@ -1479,9 +1479,9 @@ public class Attackable extends NpcInstance
// Prepare for next iteration if dropChance > DropData.MAX_CHANCE // Prepare for next iteration if dropChance > DropData.MAX_CHANCE
dropChance -= DropData.MAX_CHANCE; dropChance -= DropData.MAX_CHANCE;
} }
if (Config.L2JMOD_CHAMPION_ENABLE) if (Config.L2JMOD_CHAMPION_ENABLE && isChampion())
{ {
if (((drop.getItemId() == 57) || ((drop.getItemId() >= 6360) && (drop.getItemId() <= 6362))) && isChampion()) if ((drop.getItemId() == 57) || ((drop.getItemId() >= 6360) && (drop.getItemId() <= 6362)))
{ {
itemCount *= Config.L2JMOD_CHAMPION_ADENAS_REWARDS; itemCount *= Config.L2JMOD_CHAMPION_ADENAS_REWARDS;
} }
@@ -1778,9 +1778,9 @@ public class Attackable extends NpcInstance
// Prepare for next iteration if dropChance > DropData.MAX_CHANCE // Prepare for next iteration if dropChance > DropData.MAX_CHANCE
dropChance -= DropData.MAX_CHANCE; dropChance -= DropData.MAX_CHANCE;
} }
if (Config.L2JMOD_CHAMPION_ENABLE) if (Config.L2JMOD_CHAMPION_ENABLE && isChampion())
{ {
if (((drop.getItemId() == 57) || ((drop.getItemId() >= 6360) && (drop.getItemId() <= 6362))) && isChampion()) if ((drop.getItemId() == 57) || ((drop.getItemId() >= 6360) && (drop.getItemId() <= 6362)))
{ {
itemCount *= Config.L2JMOD_CHAMPION_ADENAS_REWARDS; itemCount *= Config.L2JMOD_CHAMPION_ADENAS_REWARDS;
} }