From d8d8e7c174cbdc6f98c0428c8352f1c28a2dbc38 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 6 Apr 2020 20:59:53 -0400 Subject: [PATCH] Implemented Forbidden Friendship --- .../src/mage/cards/f/ForbiddenFriendship.java | 34 +++++++++++++++++++ .../src/mage/sets/IkoriaLairOfBehemoths.java | 1 + .../permanent/token/DinosaurHasteToken.java | 30 ++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/ForbiddenFriendship.java create mode 100644 Mage/src/main/java/mage/game/permanent/token/DinosaurHasteToken.java diff --git a/Mage.Sets/src/mage/cards/f/ForbiddenFriendship.java b/Mage.Sets/src/mage/cards/f/ForbiddenFriendship.java new file mode 100644 index 0000000000..e1e0487a66 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/ForbiddenFriendship.java @@ -0,0 +1,34 @@ +package mage.cards.f; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.DinosaurHasteToken; +import mage.game.permanent.token.HumanSoldierToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ForbiddenFriendship extends CardImpl { + + public ForbiddenFriendship(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}"); + + // Create a 1/1 red Dinosaur creature token with haste and a 1/1 white Human Soldier creature token. + this.getSpellAbility().addEffect(new CreateTokenEffect(new DinosaurHasteToken())); + this.getSpellAbility().addEffect(new CreateTokenEffect(new HumanSoldierToken()) + .setText("and a 1/1 white Human Soldier creature token")); + } + + private ForbiddenFriendship(final ForbiddenFriendship card) { + super(card); + } + + @Override + public ForbiddenFriendship copy() { + return new ForbiddenFriendship(this); + } +} diff --git a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java index 61fdcf430c..b99c27c13f 100644 --- a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java +++ b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java @@ -83,6 +83,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet { cards.add(new SetCardInfo("Fertilid", 152, Rarity.COMMON, mage.cards.f.Fertilid.class)); cards.add(new SetCardInfo("Flourishing Fox", 13, Rarity.UNCOMMON, mage.cards.f.FlourishingFox.class)); cards.add(new SetCardInfo("Footfall Crater", 118, Rarity.UNCOMMON, mage.cards.f.FootfallCrater.class)); + cards.add(new SetCardInfo("Forbidden Friendship", 119, Rarity.COMMON, mage.cards.f.ForbiddenFriendship.class)); cards.add(new SetCardInfo("Fully Grown", 154, Rarity.COMMON, mage.cards.f.FullyGrown.class)); cards.add(new SetCardInfo("Gemrazer", 155, Rarity.RARE, mage.cards.g.Gemrazer.class)); cards.add(new SetCardInfo("General Kudro of Drannith", 187, Rarity.MYTHIC, mage.cards.g.GeneralKudroOfDrannith.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/DinosaurHasteToken.java b/Mage/src/main/java/mage/game/permanent/token/DinosaurHasteToken.java new file mode 100644 index 0000000000..49a560d930 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/DinosaurHasteToken.java @@ -0,0 +1,30 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.keyword.HasteAbility; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class DinosaurHasteToken extends TokenImpl { + + public DinosaurHasteToken() { + super("Dinosaur", "1/1 red Dinosaur creature token with haste"); + cardType.add(CardType.CREATURE); + color.setRed(true); + subtype.add(SubType.DINOSAUR); + power = new MageInt(1); + toughness = new MageInt(1); + addAbility(HasteAbility.getInstance()); + } + + private DinosaurHasteToken(final DinosaurHasteToken token) { + super(token); + } + + public DinosaurHasteToken copy() { + return new DinosaurHasteToken(this); + } +}