magarena/release/Magarena/scripts/Urabrask_the_Hidden.groovy

21 lines
769 B
Groovy

[
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Haste);
}
},
new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
if (otherPermanent.isCreature() &&
otherPermanent.getController()!=permanent.getController()) {
game.addEvent(new MagicTapEvent(otherPermanent));
}
return MagicEvent.NONE;
}
}
]