From 76eb8882b0c1485b8c91e122cb509ec4cb81bb01 Mon Sep 17 00:00:00 2001 From: xenohedron Date: Sun, 27 Aug 2023 00:06:13 -0400 Subject: [PATCH] fix some Duration.WhileOnBattlefield -> Duration.Custom --- Mage.Sets/src/mage/cards/a/AscendantSpirit.java | 2 +- Mage.Sets/src/mage/cards/e/ElvishImpersonators.java | 2 +- Mage.Sets/src/mage/cards/g/Gigantoplasm.java | 2 +- Mage.Sets/src/mage/cards/r/RiptideMangler.java | 2 +- Mage.Sets/src/mage/cards/s/Sentinel.java | 2 +- Mage.Sets/src/mage/cards/w/WallOfTombstones.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/AscendantSpirit.java b/Mage.Sets/src/mage/cards/a/AscendantSpirit.java index c70ec869315..1276c73dbf7 100644 --- a/Mage.Sets/src/mage/cards/a/AscendantSpirit.java +++ b/Mage.Sets/src/mage/cards/a/AscendantSpirit.java @@ -39,7 +39,7 @@ public final class AscendantSpirit extends CardImpl { ability.addEffect(new SetBasePowerToughnessSourceEffect( 2, 3, - Duration.WhileOnBattlefield + Duration.Custom ).setText("with base power and toughness 2/3")); this.addAbility(ability); diff --git a/Mage.Sets/src/mage/cards/e/ElvishImpersonators.java b/Mage.Sets/src/mage/cards/e/ElvishImpersonators.java index 7270a5e6b39..1d86986889f 100644 --- a/Mage.Sets/src/mage/cards/e/ElvishImpersonators.java +++ b/Mage.Sets/src/mage/cards/e/ElvishImpersonators.java @@ -65,7 +65,7 @@ class ElvishImpersonatorsEffect extends OneShotEffect { List 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), source); + game.addEffect(new SetBasePowerToughnessSourceEffect(firstRoll, secondRoll, Duration.Custom), source); return true; } } diff --git a/Mage.Sets/src/mage/cards/g/Gigantoplasm.java b/Mage.Sets/src/mage/cards/g/Gigantoplasm.java index c7e57502f06..185895b6cfc 100644 --- a/Mage.Sets/src/mage/cards/g/Gigantoplasm.java +++ b/Mage.Sets/src/mage/cards/g/Gigantoplasm.java @@ -53,7 +53,7 @@ class GigantoplasmCopyApplier extends CopyApplier { @Override public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) { - Effect effect = new SetBasePowerToughnessSourceEffect(ManacostVariableValue.REGULAR, Duration.WhileOnBattlefield); + Effect effect = new SetBasePowerToughnessSourceEffect(ManacostVariableValue.REGULAR, Duration.Custom); effect.setText("This creature has base power and toughness X/X"); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{X}")); blueprint.getAbilities().add(ability); diff --git a/Mage.Sets/src/mage/cards/r/RiptideMangler.java b/Mage.Sets/src/mage/cards/r/RiptideMangler.java index 9e3164389d8..943f2c3046f 100644 --- a/Mage.Sets/src/mage/cards/r/RiptideMangler.java +++ b/Mage.Sets/src/mage/cards/r/RiptideMangler.java @@ -69,7 +69,7 @@ class RiptideManglerEffect extends OneShotEffect { if (permanent == null) { return false; } - game.addEffect(new SetBasePowerSourceEffect(permanent.getPower().getValue(), Duration.WhileOnBattlefield), source); + game.addEffect(new SetBasePowerSourceEffect(permanent.getPower().getValue(), Duration.Custom), source); return true; } } diff --git a/Mage.Sets/src/mage/cards/s/Sentinel.java b/Mage.Sets/src/mage/cards/s/Sentinel.java index a76c0cdb24b..7d4bb421f18 100644 --- a/Mage.Sets/src/mage/cards/s/Sentinel.java +++ b/Mage.Sets/src/mage/cards/s/Sentinel.java @@ -76,7 +76,7 @@ class SentinelEffect extends OneShotEffect { Permanent targetPermanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source); if (controller != null && targetPermanent != null) { int newToughness = CardUtil.overflowInc(targetPermanent.getPower().getValue(), 1); - game.addEffect(new SetBaseToughnessSourceEffect(newToughness, Duration.WhileOnBattlefield), source); + game.addEffect(new SetBaseToughnessSourceEffect(newToughness, Duration.Custom), source); return true; } return false; diff --git a/Mage.Sets/src/mage/cards/w/WallOfTombstones.java b/Mage.Sets/src/mage/cards/w/WallOfTombstones.java index 51ab1d0c411..865ba548cc1 100644 --- a/Mage.Sets/src/mage/cards/w/WallOfTombstones.java +++ b/Mage.Sets/src/mage/cards/w/WallOfTombstones.java @@ -64,7 +64,7 @@ class WallOfTombstonesEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { int newToughness = CardUtil.overflowInc(1, new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_CREATURE).calculate(game, source, this)); - game.addEffect(new SetBaseToughnessSourceEffect(newToughness, Duration.WhileOnBattlefield), source); + game.addEffect(new SetBaseToughnessSourceEffect(newToughness, Duration.Custom), source); return true; } }