From 0acfc7bb7923400fa97bab503e1da2e6c0ff5d33 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 20 Feb 2022 23:30:35 +0000 Subject: [PATCH] Adjustments for StatMulForBaseStat effect handler. --- .../scripts/handlers/effecthandlers/StatMulForBaseStat.java | 6 +++--- .../scripts/handlers/effecthandlers/StatMulForBaseStat.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java b/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java index 7a672f2b02..67647a76ae 100644 --- a/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java +++ b/L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java @@ -39,8 +39,8 @@ public class StatMulForBaseStat extends AbstractEffect { _baseStat = params.getEnum("baseStat", BaseStat.class); _min = params.getInt("min", 0); - _max = params.getInt("max", 0); - _stat = params.getEnum("stat", Stat.class); + _max = params.getInt("max", 2147483647); + _stat = params.getEnum("mulStat", Stat.class); _amount = params.getDouble("amount", 0); if (params.getEnum("mode", StatModifierType.class, StatModifierType.PER) != StatModifierType.PER) { @@ -96,7 +96,7 @@ public class StatMulForBaseStat extends AbstractEffect } } - if (((_min == 0) && (_max == 0)) || ((currentValue >= _min) && (currentValue <= _max))) + if ((currentValue >= _min) && (currentValue <= _max)) { effected.getStat().mergeMul(_stat, (_amount / 100) + 1); } diff --git a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java index 1134a08cb7..8ebd408632 100644 --- a/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java +++ b/L2J_Mobius_Essence_6.0_BattleChronicle/dist/game/data/scripts/handlers/effecthandlers/StatMulForBaseStat.java @@ -39,8 +39,8 @@ public class StatMulForBaseStat extends AbstractEffect { _baseStat = params.getEnum("baseStat", BaseStat.class); _min = params.getInt("min", 0); - _max = params.getInt("max", 0); - _stat = params.getEnum("stat", Stat.class); + _max = params.getInt("max", 2147483647); + _stat = params.getEnum("mulStat", Stat.class); _amount = params.getDouble("amount", 0); if (params.getEnum("mode", StatModifierType.class, StatModifierType.PER) != StatModifierType.PER) { @@ -86,7 +86,7 @@ public class StatMulForBaseStat extends AbstractEffect } } - if (((_min == 0) && (_max == 0)) || ((currentValue >= _min) && (currentValue <= _max))) + if ((currentValue >= _min) && (currentValue <= _max)) { effected.getStat().mergeMul(_stat, (_amount / 100) + 1); }