Addition of missing overhit parameter initialization for FatalBlow effect.
Contributed by Iris.
This commit is contained in:
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
@@ -22,6 +22,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import com.l2jmobius.gameserver.enums.ShotType;
|
import com.l2jmobius.gameserver.enums.ShotType;
|
||||||
import com.l2jmobius.gameserver.model.StatsSet;
|
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.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||||
@@ -41,12 +42,14 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
private final double _criticalChance;
|
private final double _criticalChance;
|
||||||
private final Set<AbnormalType> _abnormals;
|
private final Set<AbnormalType> _abnormals;
|
||||||
private final double _abnormalPower;
|
private final double _abnormalPower;
|
||||||
|
private final boolean _overHit;
|
||||||
|
|
||||||
public FatalBlow(StatsSet params)
|
public FatalBlow(StatsSet params)
|
||||||
{
|
{
|
||||||
_power = params.getDouble("power");
|
_power = params.getDouble("power");
|
||||||
_chanceBoost = params.getDouble("chanceBoost");
|
_chanceBoost = params.getDouble("chanceBoost");
|
||||||
_criticalChance = params.getDouble("criticalChance", 0);
|
_criticalChance = params.getDouble("criticalChance", 0);
|
||||||
|
_overHit = params.getBoolean("overHit", false);
|
||||||
|
|
||||||
String abnormals = params.getString("abnormalType", null);
|
String abnormals = params.getString("abnormalType", null);
|
||||||
if ((abnormals != null) && !abnormals.isEmpty())
|
if ((abnormals != null) && !abnormals.isEmpty())
|
||||||
@@ -90,6 +93,11 @@ public final class FatalBlow extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_overHit && effected.isAttackable())
|
||||||
|
{
|
||||||
|
((L2Attackable) effected).overhitEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
double power = _power;
|
double power = _power;
|
||||||
|
|
||||||
// Check if we apply an abnormal modifier
|
// Check if we apply an abnormal modifier
|
||||||
|
Reference in New Issue
Block a user