magarena/release/Magarena/scripts/Ghost_Council_of_Orzhova.gr...

48 lines
1.8 KiB
Groovy
Raw Normal View History

2013-05-30 19:35:20 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal,1),
2013-05-30 19:35:20 -07:00
"Exile"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostEvent(source,"{1}"),
new MagicPlayAbilityEvent(source),
new MagicSacrificePermanentEvent(source,MagicTargetChoice.SACRIFICE_CREATURE)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Exile SN. Return it to the battlefield under its owner's control at end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicExileUntilEndOfTurnAction(event.getPermanent()));
}
},
new MagicWhenComesIntoPlayTrigger() {
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2013-05-30 19:35:20 -07:00
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_OPPONENT,
this,
"Target opponent\$ loses 1 life and PN gains 1 life."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
public void doAction(final MagicPlayer player) {
game.doAction(new MagicChangeLifeAction(player,-1));
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
}
});
2013-06-23 18:29:26 -07:00
}
2013-05-30 19:35:20 -07:00
}
]