[refactor][minor] simplified if experssion (removed always true condition)

This commit is contained in:
North 2014-06-16 17:15:44 +03:00
parent 66faa3006d
commit a397dd05f6

View file

@ -87,10 +87,10 @@ public class ConditionalRestrictionEffect extends RestrictionEffect {
otherwiseEffect.setTargetPointer(this.targetPointer);
return otherwiseEffect.applies(permanent, source, game);
}
if (!conditionState && effect.getDuration() == Duration.OneUse) {
if (effect.getDuration() == Duration.OneUse) {
used = true;
}
if (!conditionState && effect.getDuration() == Duration.Custom) {
if (effect.getDuration() == Duration.Custom) {
this.discard();
}
return false;