[CMM] Implement Zhulodok, Void Gorger

This commit is contained in:
theelk801 2023-05-07 10:14:32 -04:00
parent 13ba5bf885
commit 79d50a0bad
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,55 @@
package mage.cards.z;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.GainAbilityControlledSpellsEffect;
import mage.abilities.keyword.CascadeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.FilterCard;
import mage.filter.predicate.card.CastFromZonePredicate;
import mage.filter.predicate.mageobject.ColorlessPredicate;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ZhulodokVoidGorger extends CardImpl {
private static final FilterCard filter = new FilterCard();
static {
filter.add(ColorlessPredicate.instance);
filter.add(new CastFromZonePredicate(Zone.HAND));
filter.add(new ManaValuePredicate(ComparisonType.MORE_THAN, 6));
}
public ZhulodokVoidGorger(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{C}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.ELDRAZI);
this.power = new MageInt(7);
this.toughness = new MageInt(4);
// Colorless spells you cast from your hand with mana value 7 or greater have "Cascade, cascade."
Ability ability = new SimpleStaticAbility(new GainAbilityControlledSpellsEffect(new CascadeAbility(), filter)
.setText("colorless spells you cast from your hand with mana value 7"));
ability.addEffect(new GainAbilityControlledSpellsEffect(new CascadeAbility(), filter)
.setText("or greater have \"Cascade, cascade.\""));
this.addAbility(ability);
}
private ZhulodokVoidGorger(final ZhulodokVoidGorger card) {
super(card);
}
@Override
public ZhulodokVoidGorger copy() {
return new ZhulodokVoidGorger(this);
}
}

View file

@ -26,5 +26,6 @@ public final class CommanderMasters extends ExpansionSet {
cards.add(new SetCardInfo("Selvala, Heart of the Wilds", 220, Rarity.MYTHIC, mage.cards.s.SelvalaHeartOfTheWilds.class));
cards.add(new SetCardInfo("Sliver Gravemother", 707, Rarity.MYTHIC, mage.cards.s.SliverGravemother.class));
cards.add(new SetCardInfo("The Ur-Dragon", 361, Rarity.MYTHIC, mage.cards.t.TheUrDragon.class));
cards.add(new SetCardInfo("Zhulodok, Void Gorger", 704, Rarity.MYTHIC, mage.cards.z.ZhulodokVoidGorger.class));
}
}