magarena/release/Magarena/scripts/Rhox_Pikemaster.groovy

15 lines
499 B
Groovy

[
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_SOLDIER_YOU_CONTROL) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.FirstStrike);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
}
]