[J22] Implement Kibo, Uktabi Prince

This commit is contained in:
Evan Kranzler 2022-11-21 19:13:15 -05:00
parent 37c68e8826
commit 470d1519c9
5 changed files with 121 additions and 1 deletions

View file

@ -0,0 +1,76 @@
package mage.cards.k;
import mage.MageInt;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.PutIntoGraveFromBattlefieldAllTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.CreateTokenAllEffect;
import mage.abilities.effects.common.SacrificeEffect;
import mage.abilities.effects.common.counter.AddCountersAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.StaticFilters;
import mage.filter.common.FilterArtifactPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.game.permanent.token.BananaToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class KiboUktabiPrince extends CardImpl {
private static final FilterPermanent filter
= new FilterControlledCreaturePermanent("creature you control that's an Ape or Monkey");
private static final FilterPermanent filter2
= new FilterArtifactPermanent("an artifact an opponent controls");
static {
filter.add(Predicates.or(
SubType.APE.getPredicate(),
SubType.MONKEY.getPredicate()
));
filter2.add(TargetController.OPPONENT.getControllerPredicate());
}
public KiboUktabiPrince(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.MONKEY);
this.subtype.add(SubType.NOBLE);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// {T}: Each player creates a colorless artifact token named Banana with "{T}, Sacrifice this artifact: Add {R} or {G}. You gain 2 life."
this.addAbility(new SimpleActivatedAbility(
new CreateTokenAllEffect(new BananaToken(), TargetController.EACH_PLAYER), new TapSourceCost()
));
// Whenever an artifact an opponent controls is put into a graveyard from the battlefield, put a +1/+1 counter on each creature you control that's an Ape or Monkey.
this.addAbility(new PutIntoGraveFromBattlefieldAllTriggeredAbility(
new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter),
false, filter2, false
));
// Whenever Kibo attacks, defending player sacrifices an artifact.
this.addAbility(new AttacksTriggeredAbility(new SacrificeEffect(
StaticFilters.FILTER_PERMANENT_ARTIFACT_AN, 1, "defending player"
), false, null, SetTargetPointer.PLAYER));
}
private KiboUktabiPrince(final KiboUktabiPrince card) {
super(card);
}
@Override
public KiboUktabiPrince copy() {
return new KiboUktabiPrince(this);
}
}

View file

@ -23,6 +23,7 @@ public final class Jumpstart2022 extends ExpansionSet {
cards.add(new SetCardInfo("Ardoz, Cobbler of War", 29, Rarity.RARE, mage.cards.a.ArdozCobblerOfWar.class));
cards.add(new SetCardInfo("Coldsteel Heart", 94, Rarity.UNCOMMON, mage.cards.c.ColdsteelHeart.class));
cards.add(new SetCardInfo("Isu the Abominable", 12, Rarity.MYTHIC, mage.cards.i.IsuTheAbominable.class));
cards.add(new SetCardInfo("Kibo, Uktabi Prince", 40, Rarity.MYTHIC, mage.cards.k.KiboUktabiPrince.class));
cards.add(new SetCardInfo("Kiki-Jiki, Mirror Breaker", 79, Rarity.MYTHIC, mage.cards.k.KikiJikiMirrorBreaker.class));
}
}

View file

@ -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);
}
}

View file

@ -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",

View file

@ -46701,8 +46701,10 @@ Ultra Magnus, Tactician|Transformers|15|M|{4}{R}{G}{W}|Legendary Artifact Creatu
Ultra Magnus, Armored Carrier|Transformers|15|M||Legendary Artifact - Vehicle|4|7|Living metal$Haste$Formidable -- Whenever Ultra Magnus attacks, attacking creatures you control gain indestructible until end of turn. If htose creatures have total power 8 or greater, convert Ultra Magnus.|
Isu the Abominable|Jumpstart 2022|12|M|{3}{U}{U}|Legendary Snow Creature - Yeti|5|5|You may look at the top card of your library any time.$You may play snow lands and cast snow spells from the top of your library.$Whenever another snow permanent enters the battlefield under your control, you may pay {G}, {W}, or {U}. If you do, put a +1/+1 counter on Isu the Abominable.|
Ardoz, Cobbler of War|Jumpstart 2022|29|R|{1}{R}|Legendary Creature - Goblin Shaman|1|1|Haste$Whenever Ardoz, Cobbler of War or another creature enters the battlefield under your control, that creature gets +2/+0 until end of turn.${3}{R}: Create a 1/1 red Goblin creature token with haste. Activate only as sorcery.|
Kibo, Uktabi Prince|Jumpstart 2022|40|M|{2}{G}|Legendary Creature - Monkey Noble|2|2|{T}: Each player creates a colorless artifact token named Banana with "{T}, Sacrifice this artifact: Add {R} or {G}. You gain 2 life."$Whenever an artifact an opponent controls is put into a graveyard from the battlefield, put a +1/+1 counter on each creature you control that's an Ape or Monkey.$Whenever Kibo attacks, defending player sacrifices an artifact.|
Kiki-Jiki, Mirror Breaker|Jumpstart 2022|79|M|{2}{R}{R}{R}|Legendary Creature - Goblin Shaman|2|2|Haste${T}: Create a token that's a copy of target nonlegendary creature you control, except it has haste. Sacrifice it at the beginning of the next end step.|
Coldsteel Heart|Jumpstart 2022|94|U|{2}|Snow Artifact|||Coldsteel Heart enters the battlefield tapped.$As Coldsteel Heart enters the battlefield, choose a color.${T}: Add one mana of the chosen color.|
Karn Liberated|Jumpstart 2022|97|M|{7}|Legendary Planeswalker - Karn|6|+4: Target player exiles a card from their hand.$-3: Exile target permanent.$-14: Restart the game, leaving in exile all non-Aura permanent cards exiled with Karn Liberated. Then put those cards onto the battlefield under your control.|
Zamriel, Seraph of Steel|Game Night: Free-for-All|1|M|{2}{W}{W}|Legendary Creature - Angel|3|4|Flying$As long as it's your turn, equipped creatures you control have indestructible.|
Maeve, Insidious Singer|Game Night: Free-for-All|2|M|{2}{U}{U}|Legendary Creature - Siren|3|4|{2}{U}: Goad target creature. Whenever that creature attacks one of your opponents this turn, you draw a card.|
Vogar, Necropolis Tyrant|Game Night: Free-for-All|3|M|{3}{B}{B}|Legendary Creature - Zombie Giant|4|4|Menace$Whenever another creature dies during your turn, put a +1/+1 counter on Vogar, Necropolis Tyrant.$When Vogar dies, draw a card for each +1/+1 counter on it.|