magarena/release/Magarena/scripts/Tibalt__the_Fiend_Blooded.g...

64 lines
2.5 KiB
Groovy
Raw Normal View History

2013-03-02 01:55:54 -08:00
[
new MagicPlaneswalkerActivation(1) {
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Draw a card, then discard a card at random."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-03-02 01:55:54 -08:00
game.doAction(new MagicDrawAction(event.getPlayer(), 1));
game.addEvent(new MagicDiscardEvent(event.getSource(), event.getPlayer(), 1, true));
}
},
new MagicPlaneswalkerActivation(-4) {
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.NEG_TARGET_PLAYER,
this,
"SN deals damage equal to the number of cards in target player's\$ hand to that player."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
event.processTargetPlayer(game,new MagicPlayerAction() {
2013-03-02 01:55:54 -08:00
public void doAction(final MagicPlayer player) {
final MagicDamage damage = new MagicDamage(event.getSource(), player, player.getHandSize());
game.doAction(new MagicDealDamageAction(damage));
}
});
}
},
new MagicPlaneswalkerActivation(-6) {
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Gain control of all creatures until end of turn. Untap them. They gain haste until end of turn."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-03-02 01:55:54 -08:00
final Collection<MagicPermanent> targets=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE);
for (final MagicPermanent perm : targets) {
game.doAction(new MagicGainControlAction(event.getPlayer(),perm,MagicStatic.UntilEOT));
game.doAction(new MagicUntapAction(perm));
game.doAction(new MagicSetAbilityAction(perm,MagicAbility.Haste));
}
}
}
]