[ new MagicStatic(MagicLayer.Ability) { @Override public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set flags) { if (permanent.getController().controlsPermanent(MagicSubType.Plains)) { flags.add(MagicAbility.FirstStrike); flags.add(MagicAbility.Lifelink); } } } ]