mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- Exodus Set 100%. Added Dizzying Gaze, Mind Maggots, Paroxysm.
This commit is contained in:
parent
fa65ef0237
commit
9f35d69c99
4 changed files with 273 additions and 0 deletions
71
Mage.Sets/src/mage/cards/d/DizzyingGaze.java
Normal file
71
Mage.Sets/src/mage/cards/d/DizzyingGaze.java
Normal file
|
@ -0,0 +1,71 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AttachmentType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public final class DizzyingGaze extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("with flying");
|
||||
|
||||
static {
|
||||
filter.add(new AbilityPredicate(FlyingAbility.class));
|
||||
}
|
||||
|
||||
public DizzyingGaze(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{R}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature you control
|
||||
TargetPermanent auraTarget = new TargetControlledCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {R}: Enchanted creature deals 1 damage to target creature with flying.
|
||||
Ability ability2 = new SimpleActivatedAbility(new DamageTargetEffect(1), new ManaCostsImpl("{R}"));
|
||||
ability2.addTarget(new TargetCreaturePermanent(filter));
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new GainAbilityAttachedEffect(
|
||||
ability2,
|
||||
AttachmentType.AURA,
|
||||
Duration.WhileOnBattlefield)));
|
||||
|
||||
}
|
||||
|
||||
public DizzyingGaze(final DizzyingGaze card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DizzyingGaze copy() {
|
||||
return new DizzyingGaze(this);
|
||||
}
|
||||
}
|
88
Mage.Sets/src/mage/cards/m/MindMaggots.java
Normal file
88
Mage.Sets/src/mage/cards/m/MindMaggots.java
Normal file
|
@ -0,0 +1,88 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCardInHand;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public final class MindMaggots extends CardImpl {
|
||||
|
||||
public MindMaggots(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
|
||||
|
||||
this.subtype.add(SubType.INSECT);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Mind Maggots enters the battlefield, discard any number of creature cards.
|
||||
// For each card discarded this way, put two +1/+1 counters on Mind Maggots.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new MindMaggotsEffect()));
|
||||
|
||||
}
|
||||
|
||||
public MindMaggots(final MindMaggots card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MindMaggots copy() {
|
||||
return new MindMaggots(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MindMaggotsEffect extends OneShotEffect {
|
||||
|
||||
MindMaggotsEffect() {
|
||||
super(Outcome.BoostCreature);
|
||||
this.staticText = "discard any number of creature cards. For each card discarded this way, put two +1/+1 counters on {this}";
|
||||
}
|
||||
|
||||
MindMaggotsEffect(final MindMaggotsEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MindMaggotsEffect copy() {
|
||||
return new MindMaggotsEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
int numToDiscard = controller.getAmount(0,
|
||||
controller.getHand().getCards(new FilterCreatureCard(), game).size(),
|
||||
"Discard how many creature cards?",
|
||||
game);
|
||||
TargetCardInHand target = new TargetCardInHand(numToDiscard, new FilterCreatureCard());
|
||||
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game)) {
|
||||
for (UUID targetId : target.getTargets()) {
|
||||
Card card = game.getCard(targetId);
|
||||
if (card != null
|
||||
&& controller.discard(card, source, game)) {
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)).apply(game, source);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
111
Mage.Sets/src/mage/cards/p/Paroxysm.java
Normal file
111
Mage.Sets/src/mage/cards/p/Paroxysm.java
Normal file
|
@ -0,0 +1,111 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.Cards;
|
||||
import mage.cards.CardsImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.TargetController;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public final class Paroxysm extends CardImpl {
|
||||
|
||||
public Paroxysm(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.AURA);
|
||||
|
||||
// Enchant creature
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
|
||||
// At the beginning of the upkeep of enchanted creature's controller, that player reveals the top card of his or her library.
|
||||
// If that card is a land card, destroy that creature. Otherwise, it gets +3/+3 until end of turn.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new ParoxysmEffect(),
|
||||
TargetController.CONTROLLER_ATTACHED_TO,
|
||||
false, false, "At the beginning of the upkeep of enchanted creature's controller, "));
|
||||
}
|
||||
|
||||
public Paroxysm(final Paroxysm card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Paroxysm copy() {
|
||||
return new Paroxysm(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ParoxysmEffect extends OneShotEffect {
|
||||
|
||||
ParoxysmEffect() {
|
||||
super(Outcome.BoostCreature);
|
||||
this.staticText = "that player reveals the top card of his or her library. \n"
|
||||
+ "If that card is a land card, destroy that creature. \n"
|
||||
+ "Otherwise, it gets +3/+3 until end of turn.";
|
||||
}
|
||||
|
||||
ParoxysmEffect(final ParoxysmEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ParoxysmEffect copy() {
|
||||
return new ParoxysmEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent aura = game.getPermanent(source.getSourceId());
|
||||
if (aura != null) {
|
||||
Permanent creatureAttachedTo = game.getPermanent(aura.getAttachedTo());
|
||||
if (creatureAttachedTo != null) {
|
||||
Player controllerOfCreature = game.getPlayer(creatureAttachedTo.getControllerId());
|
||||
if (controllerOfCreature != null) {
|
||||
Card revealCardFromTop = controllerOfCreature.getLibrary().getFromTop(game);
|
||||
if (revealCardFromTop != null) {
|
||||
Cards cards = new CardsImpl();
|
||||
cards.add(revealCardFromTop);
|
||||
controllerOfCreature.revealCards(source, cards, game);
|
||||
if (revealCardFromTop.isLand()) {
|
||||
creatureAttachedTo.destroy(source.getSourceId(), game, false);
|
||||
} else {
|
||||
ContinuousEffect effect = new BoostTargetEffect(3, 3, Duration.EndOfTurn);
|
||||
effect.setTargetPointer(new FixedTarget(creatureAttachedTo.getId()));
|
||||
game.addEffect(effect, source);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -52,6 +52,7 @@ public final class Exodus extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Dauthi Jackal", 58, Rarity.COMMON, mage.cards.d.DauthiJackal.class));
|
||||
cards.add(new SetCardInfo("Dauthi Warlord", 59, Rarity.UNCOMMON, mage.cards.d.DauthiWarlord.class));
|
||||
cards.add(new SetCardInfo("Death's Duet", 60, Rarity.COMMON, mage.cards.d.DeathsDuet.class));
|
||||
cards.add(new SetCardInfo("Dizzying Gaze", 81, Rarity.COMMON, mage.cards.d.DizzyingGaze.class));
|
||||
cards.add(new SetCardInfo("Dominating Licid", 30, Rarity.RARE, mage.cards.d.DominatingLicid.class));
|
||||
cards.add(new SetCardInfo("Elven Palisade", 109, Rarity.UNCOMMON, mage.cards.e.ElvenPalisade.class));
|
||||
cards.add(new SetCardInfo("Elvish Berserker", 110, Rarity.COMMON, mage.cards.e.ElvishBerserker.class));
|
||||
|
@ -86,6 +87,7 @@ public final class Exodus extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Medicine Bag", 133, Rarity.UNCOMMON, mage.cards.m.MedicineBag.class));
|
||||
cards.add(new SetCardInfo("Memory Crystal", 134, Rarity.RARE, mage.cards.m.MemoryCrystal.class));
|
||||
cards.add(new SetCardInfo("Merfolk Looter", 39, Rarity.COMMON, mage.cards.m.MerfolkLooter.class));
|
||||
cards.add(new SetCardInfo("Mind Maggots", 66, Rarity.UNCOMMON, mage.cards.m.MindMaggots.class));
|
||||
cards.add(new SetCardInfo("Mindless Automaton", 135, Rarity.RARE, mage.cards.m.MindlessAutomaton.class));
|
||||
cards.add(new SetCardInfo("Mind Over Matter", 40, Rarity.RARE, mage.cards.m.MindOverMatter.class));
|
||||
cards.add(new SetCardInfo("Mirozel", 41, Rarity.UNCOMMON, mage.cards.m.Mirozel.class));
|
||||
|
@ -104,6 +106,7 @@ public final class Exodus extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Onslaught", 92, Rarity.COMMON, mage.cards.o.Onslaught.class));
|
||||
cards.add(new SetCardInfo("Paladin en-Vec", 12, Rarity.RARE, mage.cards.p.PaladinEnVec.class));
|
||||
cards.add(new SetCardInfo("Pandemonium", 93, Rarity.RARE, mage.cards.p.Pandemonium.class));
|
||||
cards.add(new SetCardInfo("Paroxysm", 94, Rarity.UNCOMMON, mage.cards.p.Paroxysm.class));
|
||||
cards.add(new SetCardInfo("Peace of Mind", 13, Rarity.UNCOMMON, mage.cards.p.PeaceOfMind.class));
|
||||
cards.add(new SetCardInfo("Pegasus Stampede", 14, Rarity.UNCOMMON, mage.cards.p.PegasusStampede.class));
|
||||
cards.add(new SetCardInfo("Penance", 15, Rarity.UNCOMMON, mage.cards.p.Penance.class));
|
||||
|
|
Loading…
Reference in a new issue