[BRO] Implemented Siege Veteran

This commit is contained in:
Daniel Bomar 2022-11-01 15:57:04 -05:00
parent 97e70c31ce
commit 0ab21e020a
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,66 @@
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
import mage.abilities.common.DiesCreatureTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.counters.CounterType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.AnotherPredicate;
import mage.filter.predicate.permanent.TokenPredicate;
import mage.game.permanent.token.SoldierArtifactToken;
import mage.target.common.TargetControlledCreaturePermanent;
/**
*
* @author weirddan455
*/
public final class SiegeVeteran extends CardImpl {
private static final FilterControlledPermanent filter
= new FilterControlledPermanent(SubType.SOLDIER, "another nontoken Soldier you control");
static {
filter.add(AnotherPredicate.instance);
filter.add(TokenPredicate.FALSE);
}
public SiegeVeteran(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// At the beginning of combat on your turn, put a +1/+1 counter on target creature you control.
Ability ability = new BeginningOfCombatTriggeredAbility(
new AddCountersTargetEffect(CounterType.P1P1.createInstance()), TargetController.YOU, false
);
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
// Whenever another nontoken Soldier you control dies, create a 1/1 colorless Soldier artifact creature token.
this.addAbility(new DiesCreatureTriggeredAbility(
new CreateTokenEffect(new SoldierArtifactToken()),
false, filter
));
}
private SiegeVeteran(final SiegeVeteran card) {
super(card);
}
@Override
public SiegeVeteran copy() {
return new SiegeVeteran(this);
}
}

View file

@ -77,6 +77,7 @@ public final class TheBrothersWar extends ExpansionSet {
cards.add(new SetCardInfo("Recruitment Officer", 23, Rarity.UNCOMMON, mage.cards.r.RecruitmentOfficer.class));
cards.add(new SetCardInfo("Rust Goliath", 204, Rarity.COMMON, mage.cards.r.RustGoliath.class));
cards.add(new SetCardInfo("Scrapwork Cohort", 37, Rarity.COMMON, mage.cards.s.ScrapworkCohort.class));
cards.add(new SetCardInfo("Siege Veteran", 25, Rarity.RARE, mage.cards.s.SiegeVeteran.class));
cards.add(new SetCardInfo("Simian Simulacrum", 205, Rarity.RARE, mage.cards.s.SimianSimulacrum.class));
cards.add(new SetCardInfo("Skitterbeam Battalion", 165, Rarity.MYTHIC, mage.cards.s.SkitterbeamBattalion.class));
cards.add(new SetCardInfo("Splitting the Powerstone", 63, Rarity.UNCOMMON, mage.cards.s.SplittingThePowerstone.class));