Fixed SkillTurning effect.

This commit is contained in:
MobiusDev
2018-11-30 10:59:14 +00:00
parent d814997976
commit b51139a4a2
30 changed files with 30 additions and 30 deletions

View File

@@ -41,7 +41,7 @@ public final class SkillTurning extends AbstractEffect
@Override
public boolean calcSuccess(L2Character effector, L2Character effected, Skill skill)
{
return _staticChance ? Formulas.calcProbability(_chance, effector, effected, skill) : ((_chance >= 100) || (Rnd.get(100) < _chance));
return _staticChance ? Formulas.calcProbability(_chance, effector, effected, skill) : (Rnd.get(100) < _chance);
}
@Override

View File

@@ -46,7 +46,7 @@ public final class SkillTurningOverTime extends AbstractEffect
return false;
}
final boolean skillSuccess = _staticChance ? Formulas.calcProbability(_chance, effector, effected, skill) : ((_chance >= 100) || (Rnd.get(100) < _chance));
final boolean skillSuccess = _staticChance ? Formulas.calcProbability(_chance, effector, effected, skill) : (Rnd.get(100) < _chance);
if (skillSuccess)
{
effected.breakCast();