Implemented Repudiate // Replicate

This commit is contained in:
Evan Kranzler 2019-01-10 16:15:19 -05:00
parent 1ef3fc7ded
commit 6ee47121a8
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,41 @@
package mage.cards.r;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.abilities.effects.common.CreateTokenCopyTargetEffect;
import mage.cards.CardSetInfo;
import mage.cards.SplitCard;
import mage.constants.CardType;
import mage.constants.SpellAbilityType;
import mage.target.common.TargetActivatedOrTriggeredAbility;
import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class RepudiateReplicate extends SplitCard {
public RepudiateReplicate(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, new CardType[]{CardType.SORCERY}, "{G/U}{G/U}", "{1}{G}{U}", SpellAbilityType.SPLIT);
// Repudiate
// Counter target activated ability or triggered ability.
this.getLeftHalfCard().getSpellAbility().addEffect(new CounterTargetEffect());
this.getLeftHalfCard().getSpellAbility().addTarget(new TargetActivatedOrTriggeredAbility());
// Replicate
// Create a token thats a copy of target creature you control.
this.getRightHalfCard().getSpellAbility().addEffect(new CreateTokenCopyTargetEffect());
this.getRightHalfCard().getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
}
private RepudiateReplicate(final RepudiateReplicate card) {
super(card);
}
@Override
public RepudiateReplicate copy() {
return new RepudiateReplicate(this);
}
}

View file

@ -140,6 +140,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
cards.add(new SetCardInfo("Rampage of the Clans", 134, Rarity.RARE, mage.cards.r.RampageOfTheClans.class));
cards.add(new SetCardInfo("Ravager Wurm", 200, Rarity.MYTHIC, mage.cards.r.RavagerWurm.class));
cards.add(new SetCardInfo("Regenesis", 136, Rarity.UNCOMMON, mage.cards.r.Regenesis.class));
cards.add(new SetCardInfo("Repudiate // Replicate", 227, Rarity.RARE, mage.cards.r.RepudiateReplicate.class));
cards.add(new SetCardInfo("Revival // Revenge", 228, Rarity.RARE, mage.cards.r.RevivalRevenge.class));
cards.add(new SetCardInfo("Rhythm of the Wild", 201, Rarity.UNCOMMON, mage.cards.r.RhythmOfTheWild.class));
cards.add(new SetCardInfo("Rix Maadi Reveler", 109, Rarity.RARE, mage.cards.r.RixMaadiReveler.class));