Implemented Phalanx Tactics

This commit is contained in:
Evan Kranzler 2020-01-10 19:55:30 -05:00
parent 103c7c4926
commit ffe598d3b1
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,37 @@
package mage.cards.p;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PhalanxTactics extends CardImpl {
public PhalanxTactics(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
// Target creature you control gets +2/+1 until end of turn. Each other creature you control gets +1/+1 until end of turn.
this.getSpellAbility().addEffect(new BoostTargetEffect(1, 0)
.setText("Target creature you control gets +2/+1 until end of turn."));
this.getSpellAbility().addEffect(new BoostControlledEffect(1, 1, Duration.EndOfTurn)
.setText("Each other creature you control gets +1/+1 until end of turn."));
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
}
private PhalanxTactics(final PhalanxTactics card) {
super(card);
}
@Override
public PhalanxTactics copy() {
return new PhalanxTactics(this);
}
}

View file

@ -156,6 +156,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
cards.add(new SetCardInfo("One with the Stars", 59, Rarity.UNCOMMON, mage.cards.o.OneWithTheStars.class));
cards.add(new SetCardInfo("Oread of Mountain's Blaze", 146, Rarity.COMMON, mage.cards.o.OreadOfMountainsBlaze.class));
cards.add(new SetCardInfo("Ox of Agonas", 147, Rarity.MYTHIC, mage.cards.o.OxOfAgonas.class));
cards.add(new SetCardInfo("Phalanx Tactics", 31, Rarity.UNCOMMON, mage.cards.p.PhalanxTactics.class));
cards.add(new SetCardInfo("Pharika's Libation", 111, Rarity.COMMON, mage.cards.p.PharikasLibation.class));
cards.add(new SetCardInfo("Pharika's Spawn", 112, Rarity.UNCOMMON, mage.cards.p.PharikasSpawn.class));
cards.add(new SetCardInfo("Phoenix of Ash", 148, Rarity.RARE, mage.cards.p.PhoenixOfAsh.class));