diff --git a/release/Magarena/scripts/Shield_of_the_Oversoul.groovy b/release/Magarena/scripts/Shield_of_the_Oversoul.groovy new file mode 100644 index 0000000000..547c8bc2ce --- /dev/null +++ b/release/Magarena/scripts/Shield_of_the_Oversoul.groovy @@ -0,0 +1,43 @@ +[ + new MagicStatic(MagicLayer.ModPT) { + @Override + public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) { + pt.add(1, 1); + } + @Override + public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) { + return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.White); + } + }, + new MagicStatic(MagicLayer.Ability) { + @Override + public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set flags) { + flags.add(MagicAbility.Flying); + } + @Override + public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) { + return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.White); + } + }, + new MagicStatic(MagicLayer.ModPT) { + @Override + public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) { + pt.add(1, 1); + } + @Override + public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) { + return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Green); + } + }, + new MagicStatic(MagicLayer.Ability) { + @Override + public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set flags) { + flags.add(MagicAbility.Indestructible); + } + + @Override + public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) { + return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Green); + } + } +] diff --git a/release/Magarena/scripts/Shield_of_the_Oversoul.txt b/release/Magarena/scripts/Shield_of_the_Oversoul.txt new file mode 100644 index 0000000000..2174875aa0 --- /dev/null +++ b/release/Magarena/scripts/Shield_of_the_Oversoul.txt @@ -0,0 +1,11 @@ +name=Shield of the Oversoul +url=http://magiccards.info/shm/en/242.html +image=http://magiccards.info/scans/en/shm/242.jpg +value=4.242 +rarity=C +type=Enchantment +subtype=Aura +cost={2}{G/W} +timing=enchantment +enchant=pump,pos creature +requires_groovy_code \ No newline at end of file