diff --git a/Mage.Sets/src/mage/cards/f/FightAsOne.java b/Mage.Sets/src/mage/cards/f/FightAsOne.java new file mode 100644 index 0000000000..0e5959816b --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FightAsOne.java @@ -0,0 +1,64 @@ +package mage.cards.f; + +import mage.abilities.Mode; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.Predicates; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FightAsOne extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledCreaturePermanent(SubType.HUMAN); + private static final FilterPermanent filter2 = new FilterControlledCreaturePermanent("non-Human creature you control"); + + static { + filter2.add(Predicates.not(SubType.HUMAN.getPredicate())); + } + + public FightAsOne(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}"); + + // Choose one or both— + this.getSpellAbility().getModes().setMinModes(1); + this.getSpellAbility().getModes().setMinModes(2); + + // • Target Human creature you control gets +1/+1 and gains indestructible until end of turn. + this.getSpellAbility().addEffect(new BoostTargetEffect(1, 1) + .setText("Target Human creature you control gets +1/+1")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect( + IndestructibleAbility.getInstance(), Duration.EndOfTurn + ).setText("and gains indestructible until end of turn")); + this.getSpellAbility().addTarget(new TargetPermanent(filter)); + + // • Target non-Human creature you control gets +1/+1 and gains indestructible until end of turn. + Mode mode = new Mode(new BoostTargetEffect(1, 1) + .setText("Target non-Human creature you control gets +1/+1")); + mode.addEffect(new GainAbilityTargetEffect( + IndestructibleAbility.getInstance(), Duration.EndOfTurn + ).setText("and gains indestructible until end of turn")); + mode.addTarget(new TargetPermanent(filter2)); + this.getSpellAbility().addMode(mode); + } + + private FightAsOne(final FightAsOne card) { + super(card); + } + + @Override + public FightAsOne copy() { + return new FightAsOne(this); + } +} diff --git a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java index a8b649517b..be24c7ec45 100644 --- a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java +++ b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java @@ -88,6 +88,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet { cards.add(new SetCardInfo("Everquill Phoenix", 114, Rarity.RARE, mage.cards.e.EverquillPhoenix.class)); cards.add(new SetCardInfo("Exuberant Wolfbear", 151, Rarity.UNCOMMON, mage.cards.e.ExuberantWolfbear.class)); cards.add(new SetCardInfo("Fertilid", 152, Rarity.COMMON, mage.cards.f.Fertilid.class)); + cards.add(new SetCardInfo("Fight as One", 12, Rarity.UNCOMMON, mage.cards.f.FightAsOne.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));