Fixed AbnormalShield effect related formulas.
This commit is contained in:
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -595,10 +595,7 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,19 +634,19 @@ public final class Formulas
|
|||||||
{
|
{
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
resisted = true;
|
resisted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!resisted)
|
||||||
|
{
|
||||||
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
final double sphericBarrierRange = target.getStat().getValue(Stats.SPHERIC_BARRIER_RANGE, 0);
|
||||||
if (!resisted && (sphericBarrierRange > 0))
|
if (sphericBarrierRange > 0)
|
||||||
{
|
{
|
||||||
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
resisted = attacker.calculateDistance3D(target) > sphericBarrierRange;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (resisted)
|
if (resisted)
|
||||||
{
|
{
|
||||||
@@ -704,10 +701,7 @@ public final class Formulas
|
|||||||
|
|
||||||
if (target.getAbnormalShieldBlocks() > 0)
|
if (target.getAbnormalShieldBlocks() > 0)
|
||||||
{
|
{
|
||||||
if (target.decrementAbnormalShieldBlocks() == 0)
|
target.decrementAbnormalShieldBlocks();
|
||||||
{
|
|
||||||
target.stopEffects(EffectFlag.ABNORMAL_SHIELD);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user