Implemented Forbidden Friendship

This commit is contained in:
Evan Kranzler 2020-04-06 20:59:53 -04:00
parent 9f50fade9f
commit d8d8e7c174
3 changed files with 65 additions and 0 deletions

View file

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

View file

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

View file

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