add Accelerated Mutation

master
ShawnieBoy 2016-09-05 04:19:05 +01:00
parent df24a6c282
commit 3fd35d97f9
2 changed files with 29 additions and 3 deletions

View File

@ -0,0 +1,27 @@
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
POS_TARGET_CREATURE,
MagicPumpTargetPicker.create(),
this,
"Target creature\$ gets +X/+X until end of turn, where X is the highest converted mana cost "+
"among permanents PN controls."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer player = event.getPlayer();
int X = 0;
PERMANENT_YOU_CONTROL.filter(player) each {
X = Math.max(X, it.getConvertedCost());
}
game.logAppendValue(player, X);
event.processTargetPermanent(game, {
game.doAction(new ChangeTurnPTAction(it, X, X));
});
}
}
]

View File

@ -4,7 +4,6 @@ value=2.641
rarity=C
type=Instant
cost={3}{G}{G}
effect=Target creature gets +X/+X until end of turn, where X is the highest converted mana cost among permanents you control.
timing=removal
timing=pump
oracle=Target creature gets +X/+X until end of turn, where X is the highest converted mana cost among permanents you control.
status=needs groovy
requires_groovy_code