Removed duplicate element AbnornalLvl in favor of AbnormalLevel.
This commit is contained in:
@@ -94,7 +94,7 @@ public class DispelBySlot extends AbstractEffect
|
||||
}
|
||||
|
||||
final Short abnormalLevel = _dispelAbnormals.get(info.getSkill().getAbnormalType());
|
||||
return (abnormalLevel != null) && ((abnormalLevel.shortValue() < 0) || (abnormalLevel.shortValue() >= info.getSkill().getAbnormalLvl()));
|
||||
return (abnormalLevel != null) && ((abnormalLevel.shortValue() < 0) || (abnormalLevel.shortValue() >= info.getSkill().getAbnormalLevel()));
|
||||
}, true, true);
|
||||
}
|
||||
}
|
||||
|
@@ -49,13 +49,13 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
|
||||
{
|
||||
case CASTER:
|
||||
{
|
||||
return caster.getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
|
||||
return caster.getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLevel() >= _level)) == _hasAbnormal;
|
||||
}
|
||||
case TARGET:
|
||||
{
|
||||
if ((target != null) && target.isCreature())
|
||||
{
|
||||
return ((Creature) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
|
||||
return ((Creature) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLevel() >= _level)) == _hasAbnormal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user