forked from External/mage
[DMU] Implemented Baird, Argivian Recruiter (#9454)
This commit is contained in:
parent
07a142c9e8
commit
9e40c9cc79
2 changed files with 72 additions and 0 deletions
71
Mage.Sets/src/mage/cards/b/BairdArgivianRecruiter.java
Normal file
71
Mage.Sets/src/mage/cards/b/BairdArgivianRecruiter.java
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.SoldierToken;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author awjackson
|
||||
*/
|
||||
public final class BairdArgivianRecruiter extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("you control a creature with power greater than its base power");
|
||||
|
||||
static {
|
||||
filter.add(BairdArgivianRecruiterPredicate.instance);
|
||||
}
|
||||
|
||||
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter);
|
||||
private static final Hint hint = new ConditionHint(condition, "You control a creature with power greater than its base power");
|
||||
|
||||
public BairdArgivianRecruiter(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}{W}");
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN, SubType.SOLDIER);
|
||||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// At the beginning of your end step, if you control a creature with power greater than its base power,
|
||||
// create a 1/1 white Soldier creature token.
|
||||
this.addAbility(new BeginningOfEndStepTriggeredAbility(
|
||||
new CreateTokenEffect(new SoldierToken()), TargetController.YOU, condition, false
|
||||
).addHint(hint));
|
||||
}
|
||||
|
||||
private BairdArgivianRecruiter(final BairdArgivianRecruiter card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BairdArgivianRecruiter copy() {
|
||||
return new BairdArgivianRecruiter(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum BairdArgivianRecruiterPredicate implements Predicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(MageObject input, Game game) {
|
||||
MageInt power = input.getPower();
|
||||
return power.getValue() > power.getModifiedBaseValue();
|
||||
}
|
||||
}
|
||||
|
|
@ -40,6 +40,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Artillery Blast", 6, Rarity.COMMON, mage.cards.a.ArtilleryBlast.class));
|
||||
cards.add(new SetCardInfo("Astor, Bearer of Blades", 194, Rarity.RARE, mage.cards.a.AstorBearerOfBlades.class));
|
||||
cards.add(new SetCardInfo("Automatic Librarian", 229, Rarity.COMMON, mage.cards.a.AutomaticLibrarian.class));
|
||||
cards.add(new SetCardInfo("Baird, Argivian Recruiter", 195, Rarity.UNCOMMON, mage.cards.b.BairdArgivianRecruiter.class));
|
||||
cards.add(new SetCardInfo("Balduvian Atrocity", 79, Rarity.UNCOMMON, mage.cards.b.BalduvianAtrocity.class));
|
||||
cards.add(new SetCardInfo("Balduvian Berserker", 116, Rarity.UNCOMMON, mage.cards.b.BalduvianBerserker.class));
|
||||
cards.add(new SetCardInfo("Balmor, Battlemage Captain", 196, Rarity.UNCOMMON, mage.cards.b.BalmorBattlemageCaptain.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue