From 97a686a23e845ae5799697b6938a128ecdbcc7e0 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 28 Jun 2019 04:07:26 +0000 Subject: [PATCH] Fixed summon cubic effect current cubic count. --- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- .../game/data/scripts/handlers/effecthandlers/SummonCubic.java | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) { diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java index 046d92df78..c5f5a35a2e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/SummonCubic.java @@ -91,7 +91,7 @@ public final class SummonCubic extends AbstractEffect // If maximum amount is reached, random cubic is removed. // Players with no mastery can have only one cubic. final int allowedCubicCount = (int) effected.getActingPlayer().getStat().getValue(Stats.MAX_CUBIC, 1); - final int currentCubicCount = player.getCubics().size(); + final int currentCubicCount = player.getCubics().size() + 1; // Extra cubics are removed, one by one, randomly. for (int i = 0; i <= (currentCubicCount - allowedCubicCount); i++) {