[BRO] Implemented Air Marshal

This commit is contained in:
Daniel Bomar 2022-11-04 18:38:03 -05:00
parent 96a82d494f
commit c4d17fa744
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.cards.a;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterPermanent;
import mage.target.TargetPermanent;
/**
*
* @author weirddan455
*/
public final class AirMarshal extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent(SubType.SOLDIER, "Soldier");
public AirMarshal(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// {3}: Target Soldier gains flying until end of turn.
Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect(FlyingAbility.getInstance()), new GenericManaCost(3));
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}
private AirMarshal(final AirMarshal card) {
super(card);
}
@Override
public AirMarshal copy() {
return new AirMarshal(this);
}
}

View file

@ -26,6 +26,7 @@ public final class TheBrothersWar extends ExpansionSet {
this.hasBoosters = false; // temporary
cards.add(new SetCardInfo("Aeronaut Cavalry", 1, Rarity.COMMON, mage.cards.a.AeronautCavalry.class));
cards.add(new SetCardInfo("Air Marshal", 43, Rarity.COMMON, mage.cards.a.AirMarshal.class));
cards.add(new SetCardInfo("Alloy Animist", 166, Rarity.UNCOMMON, mage.cards.a.AlloyAnimist.class));
cards.add(new SetCardInfo("Ambush Paratrooper", 3, Rarity.COMMON, mage.cards.a.AmbushParatrooper.class));
cards.add(new SetCardInfo("Arbalest Engineers", 206, Rarity.UNCOMMON, mage.cards.a.ArbalestEngineers.class));