This commit is contained in:
Jeff Wadsworth 2022-07-27 08:59:31 -05:00
parent c34c6a59df
commit 90e888fe13
2 changed files with 12 additions and 9 deletions

View file

@ -58,9 +58,10 @@ class MaskwoodNexusEffect extends ContinuousEffectImpl {
MaskwoodNexusEffect() {
super(Duration.WhileOnBattlefield, Layer.TypeChangingEffects_4, SubLayer.NA, Outcome.Benefit);
staticText = "Creatures you control are every creature type. " +
"The same is true for creature spells you control " +
"and creature cards you own that aren't on the battlefield.";
staticText = "Creatures you control are every creature type. "
+ "The same is true for creature spells you control "
+ "and creature cards you own that aren't on the battlefield.";
this.dependendToTypes.add(DependencyType.BecomeCreature);
}
private MaskwoodNexusEffect(final MaskwoodNexusEffect effect) {
@ -118,7 +119,7 @@ class MaskwoodNexusEffect extends ContinuousEffectImpl {
}
}
// creature spells you control
for (Iterator<StackObject> iterator = game.getStack().iterator(); iterator.hasNext(); ) {
for (Iterator<StackObject> iterator = game.getStack().iterator(); iterator.hasNext();) {
StackObject stackObject = iterator.next();
if (stackObject instanceof Spell
&& stackObject.isControlledBy(source.getControllerId())

View file

@ -24,7 +24,6 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
protected boolean keepAbilities;
protected boolean removeSubtypes = false;
public BecomesCreatureTargetEffect(Token token, boolean loseAllAbilities, boolean stillALand, Duration duration) {
this(token, loseAllAbilities, stillALand, duration, false);
}
@ -36,19 +35,21 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
/**
* @param token
* @param loseAllAbilities loses all subtypes, colors and abilities
* @param stillALand add rule text, "it's still a land"
* @param loseName permanent lose name and get's it from token
* @param keepAbilities lose types/colors, but keep abilities (example: Scale Up)
* @param stillALand add rule text, "it's still a land"
* @param loseName permanent lose name and get's it from token
* @param keepAbilities lose types/colors, but keep abilities (example:
* Scale Up)
* @param duration
*/
public BecomesCreatureTargetEffect(Token token, boolean loseAllAbilities, boolean stillALand, Duration duration, boolean loseName,
boolean keepAbilities) {
boolean keepAbilities) {
super(duration, Outcome.BecomeCreature);
this.token = token;
this.loseAllAbilities = loseAllAbilities;
this.addStillALandText = stillALand;
this.loseName = loseName;
this.keepAbilities = keepAbilities;
this.dependencyTypes.add(DependencyType.BecomeCreature);
}
public BecomesCreatureTargetEffect(final BecomesCreatureTargetEffect effect) {
@ -58,6 +59,7 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
this.addStillALandText = effect.addStillALandText;
this.loseName = effect.loseName;
this.keepAbilities = effect.keepAbilities;
this.dependencyTypes.add(DependencyType.BecomeCreature);
}
@Override