21 lines
771 B
Groovy
21 lines
771 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;
|
|
}
|
|
}
|
|
]
|