forked from External/mage
[J22] Implement Kibo, Uktabi Prince
This commit is contained in:
parent
37c68e8826
commit
470d1519c9
5 changed files with 121 additions and 1 deletions
|
|
@ -0,0 +1,41 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.mana.GreenManaAbility;
|
||||
import mage.abilities.mana.RedManaAbility;
|
||||
import mage.constants.CardType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BananaToken extends TokenImpl {
|
||||
|
||||
public BananaToken() {
|
||||
super("Banana", "colorless artifact token named Banana with \"{T}, Sacrifice this artifact: Add {R} or {G}. You gain 2 life.\"");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
|
||||
// {T}, Sacrifice this artifact: Add {R} or {G}. You gain 2 life.
|
||||
Ability ability = new RedManaAbility();
|
||||
ability.addCost(new SacrificeSourceCost().setText("sacrifice this artifact"));
|
||||
ability.addEffect(new GainLifeEffect(2));
|
||||
this.addAbility(ability);
|
||||
ability = new GreenManaAbility();
|
||||
ability.addCost(new SacrificeSourceCost().setText("sacrifice this artifact"));
|
||||
ability.addEffect(new GainLifeEffect(2));
|
||||
this.addAbility(ability);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("J22");
|
||||
}
|
||||
|
||||
public BananaToken(final BananaToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public BananaToken copy() {
|
||||
return new BananaToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ public final class TreasureToken extends TokenImpl {
|
|||
|
||||
// {T}, Sacrifice this artifact: Add one mana of any color.
|
||||
Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(), new TapSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost());
|
||||
ability.addCost(new SacrificeSourceCost().setText("sacrifice this artifact"));
|
||||
this.addAbility(ability);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("XLN", "RNA", "M20", "C19", "C20",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue