mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +00:00
[J22] Implement Dutiful Replicator
This commit is contained in:
parent
2dc421c463
commit
ede17e2194
2 changed files with 61 additions and 0 deletions
60
Mage.Sets/src/mage/cards/d/DutifulReplicator.java
Normal file
60
Mage.Sets/src/mage/cards/d/DutifulReplicator.java
Normal file
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.delayed.ReflexiveTriggeredAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CreateTokenCopyTargetEffect;
|
||||
import mage.abilities.effects.common.DoWhenCostPaid;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DutifulReplicator extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledPermanent("token you control not named Dutiful Replicator");
|
||||
|
||||
static {
|
||||
filter.add(TokenPredicate.TRUE);
|
||||
filter.add(Predicates.not(new NamePredicate("Dutiful Replicator")));
|
||||
}
|
||||
|
||||
public DutifulReplicator(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}");
|
||||
|
||||
this.subtype.add(SubType.ASSEMBLY_WORKER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Dutiful Replicator enters the battlefield, you may pay {1}. When you do, create a token that's a copy of target token you control not named Dutiful Replicator.
|
||||
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(
|
||||
new CreateTokenCopyTargetEffect(), false
|
||||
);
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new DoWhenCostPaid(ability, new GenericManaCost(1), "Pay {1}?")
|
||||
));
|
||||
}
|
||||
|
||||
private DutifulReplicator(final DutifulReplicator card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DutifulReplicator copy() {
|
||||
return new DutifulReplicator(this);
|
||||
}
|
||||
}
|
|
@ -34,6 +34,7 @@ public final class Jumpstart2022 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Demon of Catastrophes", 397, Rarity.RARE, mage.cards.d.DemonOfCatastrophes.class));
|
||||
cards.add(new SetCardInfo("Diabolic Edict", 67, Rarity.COMMON, mage.cards.d.DiabolicEdict.class));
|
||||
cards.add(new SetCardInfo("Dread Presence", 403, Rarity.RARE, mage.cards.d.DreadPresence.class));
|
||||
cards.add(new SetCardInfo("Dutiful Replicator", 48, Rarity.COMMON, mage.cards.d.DutifulReplicator.class));
|
||||
cards.add(new SetCardInfo("Elvish Rejuvenator", 88, Rarity.COMMON, mage.cards.e.ElvishRejuvenator.class));
|
||||
cards.add(new SetCardInfo("Eviscerate", 412, Rarity.COMMON, mage.cards.e.Eviscerate.class));
|
||||
cards.add(new SetCardInfo("Feast of Blood", 118, Rarity.UNCOMMON, mage.cards.f.FeastOfBlood.class));
|
||||
|
|
Loading…
Reference in a new issue