forked from External/mage
[WOE] Implement Three Bowls of Porridge (#10881)
This commit is contained in:
parent
cddaf09664
commit
b9f6d2ad1d
2 changed files with 63 additions and 0 deletions
62
Mage.Sets/src/mage/cards/t/ThreeBowlsOfPorridge.java
Normal file
62
Mage.Sets/src/mage/cards/t/ThreeBowlsOfPorridge.java
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.SacrificeSourceEffect;
|
||||
import mage.abilities.effects.common.TapTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class ThreeBowlsOfPorridge extends CardImpl {
|
||||
|
||||
public ThreeBowlsOfPorridge(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
this.subtype.add(SubType.FOOD);
|
||||
|
||||
// {2}, {T}: Choose one that hasn't been chosen --
|
||||
// * Three Bowls of Porridge deals 2 damage to target creature.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DamageTargetEffect(2),
|
||||
new GenericManaCost(2)
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
ability.getModes().setEachModeOnlyOnce(true);
|
||||
|
||||
// * Tap target creature.
|
||||
Mode mode = new Mode(new TapTargetEffect());
|
||||
mode.addTarget(new TargetCreaturePermanent());
|
||||
ability.addMode(mode);
|
||||
|
||||
// * Sacrifice Three Bowls of Porridge. You gain 3 life.
|
||||
mode = new Mode(new SacrificeSourceEffect());
|
||||
mode.addEffect(new GainLifeEffect(3));
|
||||
ability.addMode(mode);
|
||||
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private ThreeBowlsOfPorridge(final ThreeBowlsOfPorridge card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThreeBowlsOfPorridge copy() {
|
||||
return new ThreeBowlsOfPorridge(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -105,6 +105,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("The Goose Mother", 204, Rarity.RARE, mage.cards.t.TheGooseMother.class));
|
||||
cards.add(new SetCardInfo("The Huntsman's Redemption", 176, Rarity.RARE, mage.cards.t.TheHuntsmansRedemption.class));
|
||||
cards.add(new SetCardInfo("Three Blind Mice", 35, Rarity.RARE, mage.cards.t.ThreeBlindMice.class));
|
||||
cards.add(new SetCardInfo("Three Bowls of Porridge", 253, Rarity.UNCOMMON, mage.cards.t.ThreeBowlsOfPorridge.class));
|
||||
cards.add(new SetCardInfo("Thunderous Debut", 190, Rarity.RARE, mage.cards.t.ThunderousDebut.class));
|
||||
cards.add(new SetCardInfo("Torch the Tower", 153, Rarity.COMMON, mage.cards.t.TorchTheTower.class));
|
||||
cards.add(new SetCardInfo("Totentanz, Swarm Piper", 216, Rarity.UNCOMMON, mage.cards.t.TotentanzSwarmPiper.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue