mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[refactor][minor] simplified if experssion (removed always true condition)
This commit is contained in:
parent
66faa3006d
commit
a397dd05f6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue