diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java index 4c94b296af..dbe4ae4711 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/FatalBlow.java @@ -22,6 +22,7 @@ import java.util.Set; import com.l2jmobius.gameserver.enums.ShotType; import com.l2jmobius.gameserver.model.StatsSet; +import com.l2jmobius.gameserver.model.actor.L2Attackable; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; import com.l2jmobius.gameserver.model.effects.L2EffectType; @@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect private final double _criticalChance; private final Set _abnormals; private final double _abnormalPower; + private final boolean _overHit; public FatalBlow(StatsSet params) { _power = params.getDouble("power"); _chanceBoost = params.getDouble("chanceBoost"); _criticalChance = params.getDouble("criticalChance", 0); + _overHit = params.getBoolean("overHit", false); String abnormals = params.getString("abnormalType", null); if ((abnormals != null) && !abnormals.isEmpty()) @@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect return; } + if (_overHit && effected.isAttackable()) + { + ((L2Attackable) effected).overhitEnabled(true); + } + double power = _power; // Check if we apply an abnormal modifier