diff --git a/release/Magarena/scripts/Horned_Sliver.txt b/release/Magarena/scripts/Horned_Sliver.txt new file mode 100644 index 0000000000..453ceef38a --- /dev/null +++ b/release/Magarena/scripts/Horned_Sliver.txt @@ -0,0 +1,12 @@ +name=Horned Sliver +url=http://magiccards.info/tp/en/128.html +image=http://magiccards.info/scans/en/tp/128.jpg +value=3 +rarity=U +type=Creature +subtype=Sliver +cost={2}{G} +pt=2/2 +static=all +timing=main +requires_card_code diff --git a/src/magic/card/Horned_Sliver.java b/src/magic/card/Horned_Sliver.java new file mode 100644 index 0000000000..6d22af5f5e --- /dev/null +++ b/src/magic/card/Horned_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 Horned_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.Trample.getMask(); + } + }; +}