From f76bb14f6c6316c4f8138c15d60ea9c4e8ab9d33 Mon Sep 17 00:00:00 2001 From: "a. benedict balbuena" Date: Tue, 30 Oct 2012 22:23:11 +0800 Subject: [PATCH] added Crystalline Sliver --- .../Magarena/scripts/Crystalline_Sliver.txt | 12 +++++++++++ src/magic/card/Crystalline_Sliver.java | 21 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 release/Magarena/scripts/Crystalline_Sliver.txt create mode 100644 src/magic/card/Crystalline_Sliver.java diff --git a/release/Magarena/scripts/Crystalline_Sliver.txt b/release/Magarena/scripts/Crystalline_Sliver.txt new file mode 100644 index 0000000000..73f567129e --- /dev/null +++ b/release/Magarena/scripts/Crystalline_Sliver.txt @@ -0,0 +1,12 @@ +name=Crystalline Sliver +url=http://magiccards.info/pds/en/11.html +image=http://magiccards.info/scans/en/pds/11.jpg +value=3 +rarity=U +type=Creature +subtype=Sliver +cost={W}{U} +pt=2/2 +static=all +timing=main +requires_card_code diff --git a/src/magic/card/Crystalline_Sliver.java b/src/magic/card/Crystalline_Sliver.java new file mode 100644 index 0000000000..0717aa91e7 --- /dev/null +++ b/src/magic/card/Crystalline_Sliver.java @@ -0,0 +1,21 @@ +package magic.card; + +import magic.model.MagicAbility; +import magic.model.MagicGame; +import magic.model.MagicPermanent; +import magic.model.MagicPowerToughness; +import magic.model.mstatic.MagicLayer; +import magic.model.mstatic.MagicStatic; +import magic.model.target.MagicTargetFilter; + + +public class Crystalline_Sliver { + public static final MagicStatic S1 = new MagicStatic( + MagicLayer.Ability, + MagicTargetFilter.TARGET_SLIVER) { + @Override + public long getAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final long flags) { + return flags | MagicAbility.Shroud.getMask(); + } + }; +}