mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
[BRC] Implemented Urza, Chief Artificer
This commit is contained in:
parent
3b0cbc6459
commit
730aad4a16
2 changed files with 70 additions and 0 deletions
69
Mage.Sets/src/mage/cards/u/UrzaChiefArtificer.java
Normal file
69
Mage.Sets/src/mage/cards/u/UrzaChiefArtificer.java
Normal file
|
@ -0,0 +1,69 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.AffinityEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.abilities.keyword.MenaceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.permanent.token.KarnConstructToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UrzaChiefArtificer extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter
|
||||
= new FilterControlledCreaturePermanent("artifact creatures");
|
||||
|
||||
static {
|
||||
filter.add(CardType.ARTIFACT.getPredicate());
|
||||
}
|
||||
|
||||
private static final Hint hint = new ValueHint(
|
||||
"Artifact creatures you control", new PermanentsOnBattlefieldCount(filter)
|
||||
);
|
||||
|
||||
public UrzaChiefArtificer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}{U}{B}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Affinity for artifact creatures
|
||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new AffinityEffect(filter)).addHint(hint));
|
||||
|
||||
// Artifact creatures you control have menace.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
new MenaceAbility(false), Duration.WhileOnBattlefield, filter)
|
||||
));
|
||||
|
||||
// At the beginning of your end step, create a 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control."
|
||||
this.addAbility(new BeginningOfEndStepTriggeredAbility(
|
||||
new CreateTokenEffect(new KarnConstructToken()), TargetController.YOU, false
|
||||
));
|
||||
}
|
||||
|
||||
private UrzaChiefArtificer(final UrzaChiefArtificer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UrzaChiefArtificer copy() {
|
||||
return new UrzaChiefArtificer(this);
|
||||
}
|
||||
}
|
|
@ -25,5 +25,6 @@ public final class TheBrothersWarCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Reliquary Tower", 196, Rarity.UNCOMMON, mage.cards.r.ReliquaryTower.class));
|
||||
cards.add(new SetCardInfo("Skullclamp", 159, Rarity.UNCOMMON, mage.cards.s.Skullclamp.class));
|
||||
cards.add(new SetCardInfo("Sol Ring", 160, Rarity.UNCOMMON, mage.cards.s.SolRing.class));
|
||||
cards.add(new SetCardInfo("Urza, Chief Artificer", 2, Rarity.MYTHIC, mage.cards.u.UrzaChiefArtificer.class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue