mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
fixed #8662
This commit is contained in:
parent
13903980df
commit
5ed88aae91
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ public class ConditionalOneShotEffect extends OneShotEffect {
|
|||
// nothing to do - no problem
|
||||
Effects toApply = condition.apply(game, source) ? effects : otherwiseEffects;
|
||||
if (toApply.isEmpty()) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
toApply.setTargetPointer(this.targetPointer);
|
||||
toApply.stream().forEach(effect -> effect.apply(game, source));
|
||||
|
@ -63,7 +63,7 @@ public class ConditionalOneShotEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
public ConditionalOneShotEffect addOtherwiseEffect(OneShotEffect effect) {
|
||||
this.effects.add(effect);
|
||||
this.otherwiseEffects.add(effect);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue