mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implemented Workshop Elders
This commit is contained in:
parent
034f577591
commit
10aac8ee38
2 changed files with 78 additions and 0 deletions
77
Mage.Sets/src/mage/cards/w/WorkshopElders.java
Normal file
77
Mage.Sets/src/mage/cards/w/WorkshopElders.java
Normal file
|
@ -0,0 +1,77 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.AddCardTypeTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.SetPowerToughnessTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterArtifactCreaturePermanent;
|
||||
import mage.filter.common.FilterControlledArtifactPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class WorkshopElders extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterArtifactCreaturePermanent("artifact creatures");
|
||||
private static final FilterPermanent filter2
|
||||
= new FilterControlledArtifactPermanent("noncreature artifact you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
|
||||
}
|
||||
|
||||
public WorkshopElders(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{6}{U}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Artifact creatures you control have flying.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
FlyingAbility.getInstance(), Duration.WhileOnBattlefield, filter
|
||||
)));
|
||||
|
||||
// At the beginning of combat on your turn, you may have target noncreature artifact you control become a 0/0 artifact creature. If you do, put four +1/+1 counters on it.
|
||||
Ability ability = new BeginningOfCombatTriggeredAbility(new AddCardTypeTargetEffect(
|
||||
Duration.EndOfGame, CardType.ARTIFACT, CardType.CREATURE
|
||||
).setText("have target noncreature artifact you control become"), TargetController.YOU, true);
|
||||
ability.addEffect(new SetPowerToughnessTargetEffect(
|
||||
0, 0, Duration.EndOfGame
|
||||
).setText("a 0/0 artifact creature."));
|
||||
ability.addEffect(new AddCountersTargetEffect(
|
||||
CounterType.P1P1.createInstance(4)
|
||||
).setText("If you do, put four +1/+1 counters on it."));
|
||||
ability.addTarget(new TargetPermanent(filter2));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private WorkshopElders(final WorkshopElders card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorkshopElders copy() {
|
||||
return new WorkshopElders(this);
|
||||
}
|
||||
}
|
|
@ -89,6 +89,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Wintermoor Commander", 205, Rarity.UNCOMMON, mage.cards.w.WintermoorCommander.class));
|
||||
cards.add(new SetCardInfo("Wishful Merfolk", 73, Rarity.COMMON, mage.cards.w.WishfulMerfolk.class));
|
||||
cards.add(new SetCardInfo("Witching Well", 74, Rarity.COMMON, mage.cards.w.WitchingWell.class));
|
||||
cards.add(new SetCardInfo("Workshop Elders", 318, Rarity.RARE, mage.cards.w.WorkshopElders.class));
|
||||
|
||||
// This is here to prevent the incomplete adventure implementation from causing problems and will be removed
|
||||
cards.removeIf(setCardInfo -> AdventureCard.class.isAssignableFrom(setCardInfo.getCardClass()));
|
||||
|
|
Loading…
Reference in a new issue