forked from External/mage
refactor: use getter method when setting paw prints,
rather than direct access
This commit is contained in:
parent
d923f2941d
commit
d5b23705c7
5 changed files with 8 additions and 9 deletions
|
|
@ -44,7 +44,7 @@ public final class SeasonOfGathering extends CardImpl {
|
|||
|
||||
// {P} -- Put a +1/+1 counter on a creature you control. It gains vigilance and trample until end of turn.
|
||||
this.getSpellAbility().addEffect(new SeasonOfGatheringCounterEffect());
|
||||
this.spellAbility.getModes().getMode().withPawPrintValue(1);
|
||||
this.getSpellAbility().getModes().getMode().withPawPrintValue(1);
|
||||
|
||||
// {P}{P} -- Choose artifact or enchantment. Destroy all permanents of the chosen type.
|
||||
Mode mode2 = new Mode(new SeasonOfGatheringRemovalEffect());
|
||||
|
|
@ -159,4 +159,4 @@ class SeasonOfGatheringRemovalEffect extends OneShotEffect {
|
|||
game.informPlayers(controller.getLogName() + " has chosen " + choiceImpl.getChoiceKey());
|
||||
return new DestroyAllEffect(filter).apply(game, source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
||||
import mage.abilities.dynamicvalue.common.GreatestPowerAmongControlledCreaturesValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||
|
|
@ -18,6 +15,8 @@ import mage.filter.StaticFilters;
|
|||
import mage.game.Game;
|
||||
import mage.watchers.common.CreaturesDiedWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jimga150
|
||||
|
|
@ -35,7 +34,7 @@ public final class SeasonOfLoss extends CardImpl {
|
|||
|
||||
// {P} -- Each player sacrifices a creature.
|
||||
this.getSpellAbility().addEffect(new SacrificeAllEffect(1, StaticFilters.FILTER_PERMANENT_CREATURE));
|
||||
this.spellAbility.getModes().getMode().withPawPrintValue(1);
|
||||
this.getSpellAbility().getModes().getMode().withPawPrintValue(1);
|
||||
|
||||
// {P}{P} -- Draw a card for each creature you controlled that died this turn.
|
||||
Mode mode2 = new Mode(new DrawCardSourceControllerEffect(SeasonOfLossValue.instance));
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public final class SeasonOfTheBold extends CardImpl {
|
|||
|
||||
// {P} -- Create a tapped Treasure token.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new TreasureToken(), 1, true));
|
||||
this.spellAbility.getModes().getMode().withPawPrintValue(1);
|
||||
this.getSpellAbility().getModes().getMode().withPawPrintValue(1);
|
||||
|
||||
// {P}{P} -- Exile the top two cards of your library. Until the end of your next turn, you may play them.
|
||||
Mode mode2 = new Mode(new ExileTopXMayPlayUntilEffect(2, Duration.UntilEndOfYourNextTurn));
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class SeasonOfTheBurrow extends CardImpl {
|
|||
|
||||
// {P} -- Create a 1/1 white Rabbit creature token.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new RabbitToken()));
|
||||
this.spellAbility.getModes().getMode().withPawPrintValue(1);
|
||||
this.getSpellAbility().getModes().getMode().withPawPrintValue(1);
|
||||
|
||||
// {P}{P} -- Exile target nonland permanent. Its controller draws a card.
|
||||
Mode mode2 = new Mode(new ExileTargetEffect());
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class SeasonOfWeaving extends CardImpl {
|
|||
|
||||
// {P} -- Draw a card.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
||||
this.spellAbility.getModes().getMode().withPawPrintValue(1);
|
||||
this.getSpellAbility().getModes().getMode().withPawPrintValue(1);
|
||||
|
||||
// {P}{P} -- Choose an artifact or creature you control. Create a token that's a copy of it.
|
||||
Mode mode2 = new Mode(new SeasonOfWeavingEffect());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue