mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
Implemented Ox of Agonas
This commit is contained in:
parent
122da0e733
commit
83e23b8e64
3 changed files with 70 additions and 13 deletions
|
@ -1,28 +1,33 @@
|
|||
|
||||
package mage.cards.b;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.cost.SourceCostReductionForEachCardInGraveyardEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardHandControllerEffect;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.abilities.keyword.ProwessAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterInstantOrSorceryCard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author fireshoes
|
||||
*/
|
||||
public final class BedlamReveler extends CardImpl {
|
||||
|
||||
private static final DynamicValue cardsCount = new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_INSTANT_OR_SORCERY);
|
||||
|
||||
public BedlamReveler(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{6}{R}{R}");
|
||||
this.subtype.add(SubType.DEVIL, SubType.HORROR);
|
||||
|
@ -30,22 +35,22 @@ public final class BedlamReveler extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// Bedlam Reveler costs {1} less to cast for each instant or sorcery card in your graveyard.
|
||||
Ability ability = new SimpleStaticAbility(Zone.ALL, new SourceCostReductionForEachCardInGraveyardEffect(StaticFilters.FILTER_CARD_INSTANT_AND_SORCERY));
|
||||
ability.setRuleAtTheTop(true);
|
||||
this.addAbility(ability);
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.ALL, new SourceCostReductionForEachCardInGraveyardEffect(StaticFilters.FILTER_CARD_INSTANT_AND_SORCERY)
|
||||
).addHint(new ValueHint("Instant and sorcery cards in your graveyard", cardsCount)));
|
||||
|
||||
// Prowess
|
||||
this.addAbility(new ProwessAbility());
|
||||
|
||||
// When Bedlam Reveler enters the battlefield, discard your hand, then draw three cards.
|
||||
ability = new EntersBattlefieldTriggeredAbility(new DiscardHandControllerEffect());
|
||||
Effect effect = new DrawCardSourceControllerEffect(3);
|
||||
effect.setText("then draw three cards");
|
||||
ability.addEffect(effect);
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(
|
||||
new DiscardHandControllerEffect().setText("discard your hand,")
|
||||
);
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(3).setText("then draw three cards"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public BedlamReveler(final BedlamReveler card) {
|
||||
private BedlamReveler(final BedlamReveler card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
|
51
Mage.Sets/src/mage/cards/o/OxOfAgonas.java
Normal file
51
Mage.Sets/src/mage/cards/o/OxOfAgonas.java
Normal file
|
@ -0,0 +1,51 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.EscapesWithAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardHandControllerEffect;
|
||||
import mage.abilities.keyword.EscapeAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OxOfAgonas extends CardImpl {
|
||||
|
||||
public OxOfAgonas(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{R}");
|
||||
|
||||
this.subtype.add(SubType.OX);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Ox of Agonas enters the battlefield, discard your hand, then draw three cards.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(
|
||||
new DiscardHandControllerEffect().setText("discard your hand,")
|
||||
);
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(3).setText("then draw three cards"));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Escape—{R}{R}, Exile eight other cards from your graveyard.
|
||||
this.addAbility(new EscapeAbility(this, "{R}{R}", 8));
|
||||
|
||||
// Ox of Agonas escapes with a +1/+1 counter on it.
|
||||
this.addAbility(new EscapesWithAbility(1));
|
||||
}
|
||||
|
||||
private OxOfAgonas(final OxOfAgonas card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OxOfAgonas copy() {
|
||||
return new OxOfAgonas(this);
|
||||
}
|
||||
}
|
|
@ -57,6 +57,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Nyx Lotus", 235, Rarity.RARE, mage.cards.n.NyxLotus.class));
|
||||
cards.add(new SetCardInfo("Nyxborn Colossus", 191, Rarity.COMMON, mage.cards.n.NyxbornColossus.class));
|
||||
cards.add(new SetCardInfo("Nyxborn Courser", 29, Rarity.COMMON, mage.cards.n.NyxbornCourser.class));
|
||||
cards.add(new SetCardInfo("Ox of Agonas", 147, Rarity.MYTHIC, mage.cards.o.OxOfAgonas.class));
|
||||
cards.add(new SetCardInfo("Plains", 250, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Purphuros, Bronze-Blooded", 150, Rarity.MYTHIC, mage.cards.p.PurphurosBronzeBlooded.class));
|
||||
cards.add(new SetCardInfo("Revoke Existence", 34, Rarity.COMMON, mage.cards.r.RevokeExistence.class));
|
||||
|
|
Loading…
Reference in a new issue