diff --git a/.gitattributes b/.gitattributes index 332304a42fe..91cc823cca1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4226,6 +4226,7 @@ res/cardsfolder/l/lapse_of_certainty.txt svneol=native#text/plain res/cardsfolder/l/laquatuss_champion.txt svneol=native#text/plain res/cardsfolder/l/larceny.txt svneol=native#text/plain res/cardsfolder/l/lash_out.txt svneol=native#text/plain +res/cardsfolder/l/lashknife.txt -text res/cardsfolder/l/lashknife_barrier.txt svneol=native#text/plain res/cardsfolder/l/lashwrithe.txt svneol=native#text/plain res/cardsfolder/l/last_breath.txt svneol=native#text/plain diff --git a/res/cardsfolder/l/lashknife.txt b/res/cardsfolder/l/lashknife.txt new file mode 100644 index 00000000000..3f7e917c342 --- /dev/null +++ b/res/cardsfolder/l/lashknife.txt @@ -0,0 +1,11 @@ +Name:Lashknife +ManaCost:1 W +Types:Enchantment Aura +Text:no text +K:Enchant creature +A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Pump +S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddKeyword$ First Strike | Description$ Enchanted creature has first strike. +SVar:AltCost:Cost$ tapXType<1/Creature> | IsPresent$ Plains.YouCtrl | Description$ If you control a Plains, you may tap an untapped creature you control rather than pay Lashknife's mana cost. +SVar:Rarity:Common +SVar:Picture:http://www.wizards.com/global/images/magic/general/lashknife.jpg +End \ No newline at end of file diff --git a/src/main/java/forge/card/cardFactory/CardFactoryUtil.java b/src/main/java/forge/card/cardFactory/CardFactoryUtil.java index a048fdca17e..e85b5a0458f 100644 --- a/src/main/java/forge/card/cardFactory/CardFactoryUtil.java +++ b/src/main/java/forge/card/cardFactory/CardFactoryUtil.java @@ -4489,6 +4489,11 @@ public class CardFactoryUtil { sb.append("You may ").append(abCost.toStringAlt()); sb.append(" rather than pay ").append(card.getName()).append("'s mana cost."); } + + SpellAbility_Restriction restriction = new SpellAbility_Restriction(); + restriction.setRestrictions(mapParams); + restriction.setZone(Constant.Zone.Hand); + altCostSA.setRestrictions(restriction); altCostSA.setDescription(sb.toString());