magarena/release/Magarena/scripts/Soul_s_Majesty.groovy

23 lines
857 B
Groovy
Raw Normal View History

2013-05-17 23:13:46 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
MagicPowerTargetPicker.getInstance(),
this,
"Draw cards equal to the power of target creature\$ you control."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicDrawAction(event.getPlayer(),creature.getPower()));
}
});
}
}
]