mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
Implement Bake into a Pie
This commit is contained in:
parent
7103791d86
commit
9346f3ec83
1 changed files with 36 additions and 0 deletions
36
Mage.Sets/src/mage/cards/b/BakeIntoAPie.java
Normal file
36
Mage.Sets/src/mage/cards/b/BakeIntoAPie.java
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.game.permanent.token.custom.FoodToken;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author jmharmon
|
||||
*/
|
||||
|
||||
public final class BakeIntoAPie extends CardImpl {
|
||||
|
||||
public BakeIntoAPie(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{B}{B}");
|
||||
|
||||
// Destroy target creature. Create a Food token.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new FoodToken(), 1));
|
||||
}
|
||||
|
||||
public BakeIntoAPie(final BakeIntoAPie card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BakeIntoAPie copy() {
|
||||
return new BakeIntoAPie(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue