From 9aaf1ccef7c4bb2c447f932a512f2c4369c2dc3c Mon Sep 17 00:00:00 2001 From: xenohedron Date: Sat, 20 May 2023 21:46:33 -0400 Subject: [PATCH] Update constructors --- .../src/mage/cards/b/BogardanDragonheart.java | 2 +- .../src/mage/cards/c/ChromiumTheMutable.java | 2 +- .../src/mage/cards/m/MonumentToPerfection.java | 6 ++---- .../continuous/BecomesCreatureSourceEffect.java | 16 +++++++--------- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/Mage.Sets/src/mage/cards/b/BogardanDragonheart.java b/Mage.Sets/src/mage/cards/b/BogardanDragonheart.java index 23366dc85ee..357c2c6430d 100644 --- a/Mage.Sets/src/mage/cards/b/BogardanDragonheart.java +++ b/Mage.Sets/src/mage/cards/b/BogardanDragonheart.java @@ -33,7 +33,7 @@ public final class BogardanDragonheart extends CardImpl { // Sacrifice another creature: Until end of turn, Bogardan Dragonheart becomes a Dragon with base power and toughness 4/4, flying, and haste. this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect( new BogardanDragonheartToken(), null, Duration.EndOfTurn, false, - false, null, null, false + false, false ), new SacrificeTargetCost(new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE)))); } diff --git a/Mage.Sets/src/mage/cards/c/ChromiumTheMutable.java b/Mage.Sets/src/mage/cards/c/ChromiumTheMutable.java index d732a683547..18003fb81f9 100644 --- a/Mage.Sets/src/mage/cards/c/ChromiumTheMutable.java +++ b/Mage.Sets/src/mage/cards/c/ChromiumTheMutable.java @@ -47,7 +47,7 @@ public final class ChromiumTheMutable extends CardImpl { Ability ability = new SimpleActivatedAbility( new BecomesCreatureSourceEffect( new ChromiumTheMutableToken(), null, Duration.EndOfTurn, - false, false, null, null, true + false, false, true ).setText("Until end of turn, {this} becomes " + "a Human with base power and toughness 1/1, " + "loses all abilities, and gains hexproof"), diff --git a/Mage.Sets/src/mage/cards/m/MonumentToPerfection.java b/Mage.Sets/src/mage/cards/m/MonumentToPerfection.java index cdb4237c5e0..8646abfdff3 100644 --- a/Mage.Sets/src/mage/cards/m/MonumentToPerfection.java +++ b/Mage.Sets/src/mage/cards/m/MonumentToPerfection.java @@ -21,13 +21,11 @@ import mage.cards.CardSetInfo; import mage.constants.*; import mage.filter.FilterCard; import mage.filter.FilterPermanent; -import mage.filter.StaticFilters; import mage.filter.common.FilterControlledLandPermanent; import mage.filter.common.FilterLandCard; import mage.filter.predicate.Predicates; import mage.game.Game; import mage.game.permanent.token.custom.CreatureToken; -import mage.players.Player; import mage.target.common.TargetCardInLibrary; /** @@ -65,7 +63,7 @@ public final class MonumentToPerfection extends CardImpl { .withAbility(IndestructibleAbility.getInstance()) .withAbility(new ToxicAbility(9)), null, Duration.Custom, true, - false, null, null, true + false, true ), new GenericManaCost(3), MonumentToPerfectionCondition.instance ).addHint(MonumentToPerfectionValue.getHint())); } @@ -136,4 +134,4 @@ enum MonumentToPerfectionCondition implements Condition { public String toString() { return "there are nine or more lands with different names among the basic, Sphere, and Locus lands you control"; } -} \ No newline at end of file +} diff --git a/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java b/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java index e95dbeaa933..e30ce2b5b34 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java @@ -23,25 +23,23 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl implements protected boolean durationRuleAtStart = false; // put duration rule at the start of the rules text rather than the end public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration) { - this(token, theyAreStillType, duration, false, false); + this(token, theyAreStillType, duration, false, false, false); + } + + public BecomesCreatureSourceEffect(Token token, Duration duration) { + this(token, "", duration, true, false, false); } public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining) { - this(token, theyAreStillType, duration, losePreviousTypes, characterDefining, null, null); + this(token, theyAreStillType, duration, losePreviousTypes, characterDefining, false); } - public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining, DynamicValue power, DynamicValue toughness) { - this(token, theyAreStillType, duration, losePreviousTypes, characterDefining, power, toughness, false); - } - - public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining, DynamicValue power, DynamicValue toughness, boolean loseAbilities) { + public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining, boolean loseAbilities) { super(duration, Outcome.BecomeCreature); this.characterDefining = characterDefining; this.token = token; this.theyAreStillType = theyAreStillType; this.losePreviousTypes = losePreviousTypes; - this.power = power; - this.toughness = toughness; this.loseAbilities = loseAbilities; setText();