[ZNR] Implemented Ruin Crab

This commit is contained in:
Evan Kranzler 2020-09-01 13:49:10 -04:00
parent 2dc68a4182
commit af598df288
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,38 @@
package mage.cards.r;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.LandfallAbility;
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveEachPlayerEffect;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
/**
* @author TheElk801
*/
public final class RuinCrab extends CardImpl {
public RuinCrab(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "U");
this.subtype.add(SubType.CRAB);
this.power = new MageInt(0);
this.toughness = new MageInt(3);
// Landfall - Whenever a land enters the battlefield under your control, each opponent mills 3 cards.
this.addAbility(new LandfallAbility(new PutTopCardOfLibraryIntoGraveEachPlayerEffect(3, TargetController.OPPONENT), false));
}
private RuinCrab(final RuinCrab card) {
super(card);
}
@Override
public RuinCrab copy() {
return new RuinCrab(this);
}
}

View file

@ -32,5 +32,6 @@ public final class ZendikarRising extends ExpansionSet {
cards.add(new SetCardInfo("Lotus Cobra", 193, Rarity.RARE, mage.cards.l.LotusCobra.class));
cards.add(new SetCardInfo("Murasa Rootgrazer", 229, Rarity.UNCOMMON, mage.cards.m.MurasaRootgrazer.class));
cards.add(new SetCardInfo("Nahiri, Heir of the Ancients", 230, Rarity.MYTHIC, mage.cards.n.NahiriHeirOfTheAncients.class));
cards.add(new SetCardInfo("Ruin Crab", 75, Rarity.UNCOMMON, mage.cards.r.RuinCrab.class));
}
}