mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
Some minor changes to submitted cards.
This commit is contained in:
parent
64ae751ca4
commit
5e2a95947c
3 changed files with 12 additions and 23 deletions
|
|
@ -34,8 +34,8 @@ import mage.constants.Rarity;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.game.stack.StackObject;
|
||||
|
|
@ -51,11 +51,8 @@ public class MysticGenesis extends CardImpl {
|
|||
super(ownerId, 180, "Mystic Genesis", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{2}{G}{U}{U}");
|
||||
this.expansionSetCode = "GTC";
|
||||
|
||||
this.color.setBlue(true);
|
||||
this.color.setGreen(true);
|
||||
|
||||
// Counter target spell. Put an X/X green Ooze creature token onto the battlefield, where X is that spell's converted mana cost.
|
||||
this.getSpellAbility().addTarget(new TargetSpell(new FilterSpell()));
|
||||
this.getSpellAbility().addTarget(new TargetSpell());
|
||||
this.getSpellAbility().addEffect(new MysticGenesisEffect());
|
||||
|
||||
}
|
||||
|
|
@ -89,30 +86,23 @@ class MysticGenesisEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
StackObject stackObject = game.getStack().getStackObject(targetPointer.getFirst(game, source));
|
||||
if (stackObject != null && game.getStack().counter(source.getFirstTarget(), source.getSourceId(), game)) {
|
||||
if ( stackObject != null ) {
|
||||
int cmc = stackObject.getManaCost().convertedManaCost();
|
||||
if ( cmc > 0 ) {
|
||||
MysticGenesisOozeToken oozeToken = new MysticGenesisOozeToken();
|
||||
oozeToken.getPower().initValue(cmc);
|
||||
oozeToken.getToughness().initValue(cmc);
|
||||
oozeToken.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
if (stackObject != null) {
|
||||
game.getStack().counter(source.getFirstTarget(), source.getSourceId(), game);
|
||||
return new CreateTokenEffect(new MysticGenesisOozeToken(stackObject.getConvertedManaCost())).apply(game, source);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
class MysticGenesisOozeToken extends Token {
|
||||
public MysticGenesisOozeToken() {
|
||||
|
||||
public MysticGenesisOozeToken(int xValue) {
|
||||
super("Ooze", "X/X green Ooze creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add("Ooze");
|
||||
power = new MageInt(0);
|
||||
toughness = new MageInt(0);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
setOriginalExpansionSetCode("RTR");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ public class PhyrexianNegator extends CardImpl {
|
|||
this.expansionSetCode = "UDS";
|
||||
this.subtype.add("Horror");
|
||||
|
||||
this.color.setBlack(true);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
|
|
@ -105,6 +104,6 @@ class PhyrexianNegatorTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever Phyrexian Negator is dealt damage, sacrifice that many permanents";
|
||||
return "Whenever {this} is dealt damage, sacrifice that many permanents.";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue