[CMR] Implemented Sakashima's Protege

This commit is contained in:
Evan Kranzler 2020-11-03 19:15:42 -05:00
parent 4a5bf4a6dc
commit 459813d6c0
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.effects.common.CopyPermanentEffect;
import mage.abilities.keyword.CascadeAbility;
import mage.abilities.keyword.FlashAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.predicate.permanent.EnteredThisTurnPredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SakashimasProtege extends CardImpl {
private static final FilterPermanent filter
= new FilterPermanent("permanent that entered the battlefield this turn");
static {
filter.add(EnteredThisTurnPredicate.instance);
}
public SakashimasProtege(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{U}{U}");
this.subtype.add(SubType.SHAPESHIFTER);
this.power = new MageInt(3);
this.toughness = new MageInt(1);
// Flash
this.addAbility(FlashAbility.getInstance());
// Cascade
this.addAbility(new CascadeAbility());
// You may have Sakashima's Protege enter the battlefield as a copy of any permanent that entered the battlefield this turn.
this.addAbility(new EntersBattlefieldAbility(new CopyPermanentEffect(filter), true));
}
private SakashimasProtege(final SakashimasProtege card) {
super(card);
}
@Override
public SakashimasProtege copy() {
return new SakashimasProtege(this);
}
}

View file

@ -202,6 +202,7 @@ public final class CommanderLegends extends ExpansionSet {
cards.add(new SetCardInfo("Rings of Brighthearth", 335, Rarity.RARE, mage.cards.r.RingsOfBrighthearth.class));
cards.add(new SetCardInfo("Rograkh, Son of Rohgahh", 197, Rarity.UNCOMMON, mage.cards.r.RograkhSonOfRohgahh.class));
cards.add(new SetCardInfo("Run Away Together", 87, Rarity.COMMON, mage.cards.r.RunAwayTogether.class));
cards.add(new SetCardInfo("Sakashima's Protege", 90, Rarity.RARE, mage.cards.s.SakashimasProtege.class));
cards.add(new SetCardInfo("Sandstone Oracle", 336, Rarity.UNCOMMON, mage.cards.s.SandstoneOracle.class));
cards.add(new SetCardInfo("Sanitarium Skeleton", 148, Rarity.COMMON, mage.cards.s.SanitariumSkeleton.class));
cards.add(new SetCardInfo("Scholar of the Ages", 93, Rarity.UNCOMMON, mage.cards.s.ScholarOfTheAges.class));