mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[ZNR] Implemented Relic Golem
This commit is contained in:
parent
94378c7c08
commit
506673e216
2 changed files with 53 additions and 0 deletions
52
Mage.Sets/src/mage/cards/r/RelicGolem.java
Normal file
52
Mage.Sets/src/mage/cards/r/RelicGolem.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.common.CardsInOpponentGraveyardCondition;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.PutLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.combat.CantAttackBlockUnlessConditionSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.TargetPlayer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RelicGolem extends CardImpl {
|
||||
|
||||
public RelicGolem(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}");
|
||||
|
||||
this.subtype.add(SubType.GOLEM);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(6);
|
||||
|
||||
// Relic Golem can't attack or block unless an opponent has eight or more cards in their graveyard.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
new CantAttackBlockUnlessConditionSourceEffect(CardsInOpponentGraveyardCondition.EIGHT)
|
||||
).addHint(CardsInOpponentGraveyardCondition.EIGHT.getHint()));
|
||||
|
||||
// {2}, {T}: Target player mills two cards.
|
||||
Ability ability = new SimpleActivatedAbility(new PutLibraryIntoGraveTargetEffect(2), new GenericManaCost(2));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private RelicGolem(final RelicGolem card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RelicGolem copy() {
|
||||
return new RelicGolem(this);
|
||||
}
|
||||
}
|
|
@ -253,6 +253,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Prowling Felidar", 34, Rarity.COMMON, mage.cards.p.ProwlingFelidar.class));
|
||||
cards.add(new SetCardInfo("Rabid Bite", 199, Rarity.COMMON, mage.cards.r.RabidBite.class));
|
||||
cards.add(new SetCardInfo("Ravager's Mace", 235, Rarity.UNCOMMON, mage.cards.r.RavagersMace.class));
|
||||
cards.add(new SetCardInfo("Relic Golem", 249, Rarity.UNCOMMON, mage.cards.r.RelicGolem.class));
|
||||
cards.add(new SetCardInfo("Relic Robber", 153, Rarity.RARE, mage.cards.r.RelicRobber.class));
|
||||
cards.add(new SetCardInfo("Resolute Strike", 35, Rarity.COMMON, mage.cards.r.ResoluteStrike.class));
|
||||
cards.add(new SetCardInfo("Risen Riptide", 73, Rarity.COMMON, mage.cards.r.RisenRiptide.class));
|
||||
|
|
Loading…
Reference in a new issue