remove sublayer parameter in SetBasePowerToughnessSourceEffect

This commit is contained in:
xenohedron 2023-08-26 00:26:25 -04:00
parent be4b568e88
commit 5d0c1c96c8
35 changed files with 45 additions and 58 deletions

View file

@ -83,8 +83,7 @@ class AmplifireEffect extends OneShotEffect {
SetBasePowerToughnessSourceEffect setBasePowerToughnessSourceEffect = new SetBasePowerToughnessSourceEffect(
2*lastCard.getPower().getValue(),
2*lastCard.getToughness().getValue(),
Duration.UntilYourNextTurn,
SubLayer.SetPT_7b
Duration.UntilYourNextTurn
);
game.addEffect(setBasePowerToughnessSourceEffect, source);
}

View file

@ -124,7 +124,7 @@ class AquamorphEntityReplacementEffect extends ReplacementEffectImpl {
toughness = 5;
break;
}
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield, SubLayer.CharacteristicDefining_7a), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield), source);
return false;
}

View file

@ -39,8 +39,7 @@ public final class AscendantSpirit extends CardImpl {
ability.addEffect(new SetBasePowerToughnessSourceEffect(
2,
3,
Duration.WhileOnBattlefield,
SubLayer.SetPT_7b
Duration.WhileOnBattlefield
).setText("with base power and toughness 2/3"));
this.addAbility(ability);
@ -93,7 +92,7 @@ class AscendantSpiritWarriorEffect extends OneShotEffect {
Duration.Custom, SubType.SPIRIT, SubType.WARRIOR, SubType.ANGEL
), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(
4, 4, Duration.Custom, SubLayer.SetPT_7b
4, 4, Duration.Custom
), source);
return true;
}

View file

@ -12,7 +12,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.ColorPredicate;
@ -41,7 +40,7 @@ public final class BattlegateMimic extends CardImpl {
this.toughness = new MageInt(1);
// Whenever you cast a spell that's both red and white, Battlegate Mimic has base power and toughness 4/2 and gains first strike until end of turn.
SetBasePowerToughnessSourceEffect baseToughnessSourceEffect = new SetBasePowerToughnessSourceEffect(4, 2, Duration.EndOfTurn, SubLayer.SetPT_7b);
SetBasePowerToughnessSourceEffect baseToughnessSourceEffect = new SetBasePowerToughnessSourceEffect(4, 2, Duration.EndOfTurn);
Ability ability = SpellCastControllerTriggeredAbility.createWithRule(baseToughnessSourceEffect, filter, false, rule);
ability.addEffect(new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, false, true));
this.addAbility(ability);

View file

@ -34,7 +34,7 @@ public final class BramblefortFink extends CardImpl {
this.addAbility(new ActivateIfConditionActivatedAbility(
Zone.BATTLEFIELD,
new SetBasePowerToughnessSourceEffect(
10, 10, Duration.EndOfTurn, SubLayer.SetPT_7b
10, 10, Duration.EndOfTurn
).setText("{this} has base power and toughness 10/10 until end of turn"),
new GenericManaCost(8),
condition));

View file

@ -8,7 +8,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import java.util.UUID;
@ -28,7 +27,7 @@ public final class BrokersInitiate extends CardImpl {
// {4}{G/U}: Brokers Initiate has base power and toughness 5/5 until end of turn.
this.addAbility(new SimpleActivatedAbility(
new SetBasePowerToughnessSourceEffect(5, 5, Duration.EndOfTurn, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(5, 5, Duration.EndOfTurn),
new ManaCostsImpl<>("{4}{G/U}")
));
}

View file

@ -103,7 +103,7 @@ enum DonalHeraldOfWingsApplier implements StackObjectCopyApplier {
copiedSpell.addSubType(SubType.SPIRIT);
copiedSpell.getPower().setModifiedBaseValue(1);
copiedSpell.getToughness().setModifiedBaseValue(1);
Ability ability = new SimpleStaticAbility(new SetBasePowerToughnessSourceEffect(1,1, Duration.Custom, SubLayer.SetPT_7b));
Ability ability = new SimpleStaticAbility(new SetBasePowerToughnessSourceEffect(1,1, Duration.Custom));
ability.setRuleVisible(false);
copiedSpell.getAbilities().add(ability);
}

View file

@ -117,7 +117,7 @@ class DracoplasmEffect extends ReplacementEffectImpl {
toughness = CardUtil.overflowInc(toughness, targetCreature.getToughness().getValue());
}
}
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(power, toughness, Duration.Custom, SubLayer.SetPT_7b);
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(power, toughness, Duration.Custom);
game.addEffect(effect, source);
return false;
}

View file

@ -65,7 +65,7 @@ class ElvishImpersonatorsEffect extends OneShotEffect {
List<Integer> results = controller.rollDice(outcome, source, game, 6, 2, 0);
int firstRoll = results.get(0);
int secondRoll = results.get(1);
game.addEffect(new SetBasePowerToughnessSourceEffect(firstRoll, secondRoll, Duration.WhileOnBattlefield, SubLayer.SetPT_7b), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(firstRoll, secondRoll, Duration.WhileOnBattlefield), source);
return true;
}
}

View file

@ -34,7 +34,7 @@ public final class EvolvedSleeper extends CardImpl {
Duration.Custom, SubType.HUMAN, SubType.CLERIC
).setText("{this} becomes a Human Cleric"), new ManaCostsImpl<>("{B}"));
ability.addEffect(new SetBasePowerToughnessSourceEffect(
2, 2, Duration.Custom, SubLayer.SetPT_7b
2, 2, Duration.Custom
).setText("with base power and toughness 2/2"));
this.addAbility(ability);
@ -87,7 +87,7 @@ class EvolvedSleeperClericEffect extends OneShotEffect {
Duration.Custom, SubType.PHYREXIAN, SubType.HUMAN, SubType.CLERIC
), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(
3, 3, Duration.Custom, SubLayer.SetPT_7b
3, 3, Duration.Custom
), source);
return true;
}

View file

@ -35,7 +35,7 @@ public final class FigureOfDestiny extends CardImpl {
Duration.Custom, SubType.KITHKIN, SubType.SPIRIT
).setText("{this} becomes a Kithkin Spirit"), new ManaCostsImpl<>("{R/W}"));
ability.addEffect(new SetBasePowerToughnessSourceEffect(
2, 2, Duration.Custom, SubLayer.SetPT_7b
2, 2, Duration.Custom
).setText("with base power and toughness 2/2"));
this.addAbility(ability);
@ -86,7 +86,7 @@ class FigureOfDestinySpiritEffect extends OneShotEffect {
Duration.Custom, SubType.KITHKIN, SubType.SPIRIT, SubType.WARRIOR
), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(
4, 4, Duration.Custom, SubLayer.SetPT_7b
4, 4, Duration.Custom
), source);
return true;
}
@ -119,7 +119,7 @@ class FigureOfDestinyWarriorEffect extends OneShotEffect {
Duration.Custom, SubType.KITHKIN, SubType.SPIRIT, SubType.WARRIOR, SubType.AVATAR
), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(
8, 8, Duration.Custom, SubLayer.SetPT_7b
8, 8, Duration.Custom
), source);
game.addEffect(new GainAbilitySourceEffect(
FlyingAbility.getInstance(), Duration.Custom

View file

@ -44,7 +44,7 @@ public final class FrodoSauronsBane extends CardImpl {
this.addAbility(new SimpleActivatedAbility(
new ConditionalOneShotEffect(new AddContinuousEffectToGame(
new AddCardSubTypeSourceEffect(Duration.Custom, SubType.HALFLING, SubType.SCOUT),
new SetBasePowerToughnessSourceEffect(2, 3, Duration.Custom, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(2, 3, Duration.Custom),
new GainAbilitySourceEffect(LifelinkAbility.getInstance(), Duration.Custom)
), condition1, "if {this} is a Citizen, it becomes a Halfling Scout with base power and toughness 2/3 and lifelink"),
new ManaCostsImpl<>("{W/B}{W/B}")

View file

@ -71,7 +71,7 @@ class GigantiformAbility extends StaticAbility {
super(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.AURA));
Ability ability = new SimpleStaticAbility(
Zone.BATTLEFIELD,
new SetBasePowerToughnessSourceEffect(8, 8, Duration.WhileOnBattlefield, SubLayer.SetPT_7b)
new SetBasePowerToughnessSourceEffect(8, 8, Duration.WhileOnBattlefield)
);
this.addEffect(new GainAbilityAttachedEffect(ability, AttachmentType.AURA));
}

View file

@ -81,9 +81,9 @@ class HalfdaneUpkeepEffect extends OneShotEffect {
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(
permanent.getPower().getValue(),
permanent.getToughness().getValue(),
Duration.UntilYourNextUpkeepStep,
SubLayer.SetPT_7b);
Duration.UntilYourNextUpkeepStep
);
game.addEffect(effect, source);
return true;
}
}
}

View file

@ -44,7 +44,7 @@ public final class MarshFlitter extends CardImpl {
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new GoblinRogueToken(), 2), false));
// Sacrifice a Goblin: Marsh Flitter has base power and toughness 3/3 until end of turn.
Effect effect = new SetBasePowerToughnessSourceEffect(3, 3, Duration.EndOfTurn, SubLayer.SetPT_7b);
Effect effect = new SetBasePowerToughnessSourceEffect(3, 3, Duration.EndOfTurn);
effect.setText("{this} has base power and toughness 3/3 until end of turn");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new SacrificeTargetCost(new TargetControlledPermanent(filter)));
this.addAbility(ability);

View file

@ -79,7 +79,7 @@ class MasterOfWindsEffect extends OneShotEffect {
null, "4/1", "1/4", source, game
) ? 4 : 1;
game.addEffect(new SetBasePowerToughnessSourceEffect(
power, 5 - power, Duration.EndOfTurn, SubLayer.SetPT_7b
power, 5 - power, Duration.EndOfTurn
), source);
return true;
}

View file

@ -84,7 +84,7 @@ class MinionOfTheWastesEffect extends OneShotEffect {
game.informPlayers((sourceCard != null ? sourceCard.getLogName() : "") + ": " + controller.getLogName() +
" pays " + payAmount + " life");
game.addEffect(new SetBasePowerToughnessSourceEffect(
payAmount, payAmount, Duration.Custom, SubLayer.CharacteristicDefining_7a
payAmount, payAmount, Duration.Custom
), source);
permanent.addInfo("life paid", CardUtil.addToolTipMarkTags("Life paid: " + payAmount), game);
return true;

View file

@ -79,7 +79,7 @@ class MoltenSentryEffect extends OneShotEffect {
toughness = 5;
gainedAbility = DefenderAbility.getInstance();
}
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield, SubLayer.CharacteristicDefining_7a), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield), source);
game.addEffect(new GainAbilitySourceEffect(gainedAbility, Duration.WhileOnBattlefield), source);
return true;
}

View file

@ -108,7 +108,7 @@ class NamelessRaceEffect extends OneShotEffect {
game.informPlayers((sourceCard != null ? sourceCard.getLogName() : "") + ": " + controller.getLogName() +
" pays " + payAmount + " life");
game.addEffect(new SetBasePowerToughnessSourceEffect(
payAmount, payAmount, Duration.Custom, SubLayer.CharacteristicDefining_7a
payAmount, payAmount, Duration.Custom
), source);
permanent.addInfo("life paid", CardUtil.addToolTipMarkTags("Life paid: " + payAmount), game);
return true;

View file

@ -12,7 +12,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.ColorPredicate;
@ -44,7 +43,7 @@ public final class NightskyMimic extends CardImpl {
// Whenever you cast a spell that's both white and black, Nightsky Mimic has base power and toughness 4/4 until end of turn and gains flying until end of turn.
Ability ability = SpellCastControllerTriggeredAbility.createWithRule(
new SetBasePowerToughnessSourceEffect(4, 4, Duration.EndOfTurn, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(4, 4, Duration.EndOfTurn),
filter, false, rule
);
ability.addEffect(new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, false, true));

View file

@ -114,7 +114,7 @@ public final class PrimalClay extends CardImpl {
game.addEffect(new GainAbilitySourceEffect(DefenderAbility.getInstance(), Duration.Custom), source);
break;
}
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield, SubLayer.CharacteristicDefining_7a), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield), source);
return false;
}

View file

@ -113,7 +113,7 @@ public final class PrimalPlasma extends CardImpl {
game.addEffect(new GainAbilitySourceEffect(DefenderAbility.getInstance(), Duration.Custom), source);
break;
}
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield, SubLayer.CharacteristicDefining_7a), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield), source);
}
return false;

View file

@ -7,7 +7,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import mage.filter.StaticFilters;
@ -27,7 +26,7 @@ public final class RisenRiptide extends CardImpl {
// Whenever you cast a kicked spell, Risen Riptide has base power and toughness 5/5 until end of turn.
this.addAbility(new SpellCastControllerTriggeredAbility(
new SetBasePowerToughnessSourceEffect(5, 5, Duration.EndOfTurn, SubLayer.SetPT_7b)
new SetBasePowerToughnessSourceEffect(5, 5, Duration.EndOfTurn)
.setText("{this} has base power and toughness 5/5 until end of turn"),
StaticFilters.FILTER_SPELL_KICKED_A,
false)

View file

@ -12,7 +12,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.ColorPredicate;
@ -44,7 +43,7 @@ public final class RiverfallMimic extends CardImpl {
// Whenever you cast a spell that's both blue and red, Riverfall Mimic has base power and toughness 3/3 until end of turn and can't be blocked this turn.
Ability ability = SpellCastControllerTriggeredAbility.createWithRule(
new SetBasePowerToughnessSourceEffect(3, 3, Duration.EndOfTurn, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(3, 3, Duration.EndOfTurn),
filter, false, rule
);
ability.addEffect(new GainAbilitySourceEffect(new CantBeBlockedSourceAbility(), Duration.EndOfTurn, false, true));

View file

@ -14,7 +14,6 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.SubLayer;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -74,7 +73,7 @@ class ShapeStealerEffect extends OneShotEffect {
return false;
}
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(permanent.getPower().getValue(), permanent.getToughness().getValue(), Duration.EndOfTurn, SubLayer.SetPT_7b);
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(permanent.getPower().getValue(), permanent.getToughness().getValue(), Duration.EndOfTurn);
game.addEffect(effect, source);
return true;
}

View file

@ -12,7 +12,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.ColorPredicate;
@ -44,7 +43,7 @@ public final class ShorecrasherMimic extends CardImpl {
// Whenever you cast a spell that's both green and blue, Shorecrasher Mimic has base power and toughness 5/3 until end of turn and gains trample until end of turn.
Ability ability = SpellCastControllerTriggeredAbility.createWithRule(
new SetBasePowerToughnessSourceEffect(5, 3, Duration.EndOfTurn, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(5, 3, Duration.EndOfTurn),
filter, false, rule
);
ability.addEffect(new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, false, true));

View file

@ -54,7 +54,7 @@ public final class SurgeEngine extends CardImpl {
new ManaCostsImpl<>("{2}{U}"), SurgeEngineCondition.instance
);
ability.addEffect(new SetBasePowerToughnessSourceEffect(
5, 4, Duration.Custom, SubLayer.SetPT_7b
5, 4, Duration.Custom
).setText("and has base power and toughness 5/4"));
this.addAbility(ability);

View file

@ -78,7 +78,7 @@ class SwornDefenderEffect extends OneShotEffect {
if (controller != null && targetPermanent != null) {
int newPower = CardUtil.overflowDec(targetPermanent.getToughness().getValue(), 1);
int newToughness = CardUtil.overflowInc(targetPermanent.getPower().getValue(), 1);
game.addEffect(new SetBasePowerToughnessSourceEffect(newPower, newToughness, Duration.EndOfTurn, SubLayer.SetPT_7b), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(newPower, newToughness, Duration.EndOfTurn), source);
return true;
}
return false;

View file

@ -17,7 +17,6 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.Duration;
import mage.constants.SubLayer;
/**
*
@ -38,7 +37,7 @@ public final class TimberPaladin extends CardImpl {
// As long as Timber Paladin is enchanted by exactly one Aura, it has base power and toughness 3/3.
Ability ability1 = new SimpleStaticAbility(new ConditionalContinuousEffect(
new SetBasePowerToughnessSourceEffect(3, 3, Duration.WhileOnBattlefield, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(3, 3, Duration.WhileOnBattlefield),
exactlyOne,
"As long as {this} is enchanted by exactly one Aura, it has base power and toughness 3/3."
));
@ -47,7 +46,7 @@ public final class TimberPaladin extends CardImpl {
// As long as Timber Paladin is enchanted by exactly two Auras, it has base power and toughness 5/5 and vigilance.
Ability ability2 = new SimpleStaticAbility(new ConditionalContinuousEffect(
new SetBasePowerToughnessSourceEffect(5, 5, Duration.WhileOnBattlefield, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(5, 5, Duration.WhileOnBattlefield),
exactlyTwo,
"As long as {this} is enchanted by exactly two Auras, it has base power and toughness 5/5"
));
@ -57,7 +56,7 @@ public final class TimberPaladin extends CardImpl {
// As long as Timber Paladin is enchanted by three or more Auras, it has base power and toughness 10/10, vigilance, and trample.
Ability ability3 = new SimpleStaticAbility(new ConditionalContinuousEffect(
new SetBasePowerToughnessSourceEffect(10, 10, Duration.WhileOnBattlefield, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(10, 10, Duration.WhileOnBattlefield),
threeOrMore,
"As long as {this} is enchanted by three or more Auras, it has base power and toughness 10/10"
));
@ -74,4 +73,4 @@ public final class TimberPaladin extends CardImpl {
public TimberPaladin copy() {
return new TimberPaladin(this);
}
}
}

View file

@ -86,7 +86,7 @@ class TrenchGorgerEffect extends OneShotEffect {
}
}
controller.shuffleLibrary(source, game);
game.addEffect(new SetBasePowerToughnessSourceEffect(count, count, Duration.WhileOnBattlefield, SubLayer.SetPT_7b), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(count, count, Duration.WhileOnBattlefield), source);
return true;
}
}

View file

@ -43,7 +43,7 @@ public final class WardenOfTheFirstTree extends CardImpl {
Duration.Custom, SubType.HUMAN, SubType.WARRIOR
).setText("{this} becomes a Human Warrior"), new ManaCostsImpl<>("{1}{W/B}"));
ability.addEffect(new SetBasePowerToughnessSourceEffect(
3, 3, Duration.Custom, SubLayer.SetPT_7b
3, 3, Duration.Custom
).setText("with base power and toughness 3/3"));
this.addAbility(ability);

View file

@ -16,7 +16,6 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.SubLayer;
import mage.constants.Zone;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.permanent.TappedPredicate;
@ -95,7 +94,7 @@ class WoodElementalEffect extends OneShotEffect {
targetPermanent.sacrifice(source, game);
}
}
game.addEffect(new SetBasePowerToughnessSourceEffect(sacrificedForests, sacrificedForests, Duration.Custom, SubLayer.SetPT_7b), source);
game.addEffect(new SetBasePowerToughnessSourceEffect(sacrificedForests, sacrificedForests, Duration.Custom), source);
return true;
}
}

View file

@ -12,7 +12,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.ColorPredicate;
@ -44,7 +43,7 @@ public final class WoodlurkerMimic extends CardImpl {
// Whenever you cast a spell that's both black and green, Woodlurker Mimic has base power and toughness 4/5 until end of turn and gains wither until end of turn.
Ability ability = SpellCastControllerTriggeredAbility.createWithRule(
new SetBasePowerToughnessSourceEffect(4, 5, Duration.EndOfTurn, SubLayer.SetPT_7b),
new SetBasePowerToughnessSourceEffect(4, 5, Duration.EndOfTurn),
filter, false, rule
);
ability.addEffect(new GainAbilitySourceEffect(WitherAbility.getInstance(), Duration.EndOfTurn, false, true));

View file

@ -42,8 +42,8 @@ public class SetBasePowerToughnessSourceEffect extends ContinuousEffectImpl {
this.staticText = "{this}'s power and toughness are each equal to the number of " + amount.getMessage();
}
public SetBasePowerToughnessSourceEffect(int power, int toughness, Duration duration, SubLayer subLayer) {
this(StaticValue.get(power), StaticValue.get(toughness), duration, subLayer);
public SetBasePowerToughnessSourceEffect(int power, int toughness, Duration duration) {
this(StaticValue.get(power), StaticValue.get(toughness), duration, SubLayer.SetPT_7b);
this.staticText = "{this} has base power and toughness " + power + '/' + toughness + ' ' + duration.toString();
}

View file

@ -11,7 +11,6 @@ import mage.abilities.effects.ContinuousEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessSourceEffect;
import mage.constants.Duration;
import mage.constants.SubLayer;
import mage.constants.Zone;
import mage.counters.CounterType;
@ -55,7 +54,7 @@ public class LevelerCardBuilder {
staticAbility.setRuleVisible(false);
constructed.add(staticAbility);
}
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield, SubLayer.SetPT_7b);
ContinuousEffect effect = new SetBasePowerToughnessSourceEffect(power, toughness, Duration.WhileOnBattlefield);
ConditionalContinuousEffect ptEffect = new ConditionalContinuousEffect(effect, condition, rule);
constructed.add(new SimpleStaticAbility(Zone.BATTLEFIELD, ptEffect));