forked from External/mage
fix some Duration.WhileOnBattlefield -> Duration.Custom
This commit is contained in:
parent
2eab7836f6
commit
76eb8882b0
6 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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), source);
|
||||
game.addEffect(new SetBasePowerToughnessSourceEffect(firstRoll, secondRoll, Duration.Custom), source);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue