magarena/release/Magarena/scripts/Mizzium_Skin.groovy

49 lines
2.0 KiB
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
MagicShroudTargetPicker.create(),
this,
"Target creature\$ you control gets +0/+1 and gains hexproof until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature, 0, 1));
game.doAction(new MagicGainAbilityAction(creature, MagicAbility.Hexproof));
}
});
}
},
new MagicOverloadActivation(MagicTiming.Pump) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
return [
new MagicPayManaCostEvent(source,"{1}{U}")
];
}
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Each creature you control gets +0/+1 and gains hexproof until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent creature : targets) {
game.doAction(new MagicChangeTurnPTAction(creature, 0, 1));
game.doAction(new MagicGainAbilityAction(creature, MagicAbility.Hexproof));
}
}
}
]