mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
small change to test failure fix
This commit is contained in:
parent
29a4fbc27a
commit
4150a5bb12
1 changed files with 2 additions and 8 deletions
|
|
@ -19,7 +19,7 @@ import mage.target.Target;
|
||||||
import mage.target.Targets;
|
import mage.target.Targets;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Collections;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
|
|
@ -39,14 +39,8 @@ public class GainAbilityWithAttachmentEffect extends ContinuousEffectImpl {
|
||||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||||
this.staticText = rule;
|
this.staticText = rule;
|
||||||
this.effects.addAll(effects);
|
this.effects.addAll(effects);
|
||||||
this.effects.removeIf(Objects::isNull);
|
|
||||||
this.targets.addAll(targets);
|
this.targets.addAll(targets);
|
||||||
this.targets.removeIf(Objects::isNull);
|
Collections.addAll(this.costs, costs);
|
||||||
for (Cost cost : costs) {
|
|
||||||
if (cost != null) {
|
|
||||||
this.costs.add(cost);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.useAttachedCost = attachedCost;
|
this.useAttachedCost = attachedCost;
|
||||||
this.generateGainAbilityDependencies(makeAbility(null, null), null);
|
this.generateGainAbilityDependencies(makeAbility(null, null), null);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue