From 0fc8a73b68c96a8aa882b31244078b3297e276b9 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 05:46:53 +0000 Subject: [PATCH] - Added the option tapped to getValidCards in CardList.java. - Added Assassinate, Death Stroke and Vengeance. --- res/cards.txt | 18 ++++++++++++++++++ src/forge/CardList.java | 1 + 2 files changed, 19 insertions(+) diff --git a/res/cards.txt b/res/cards.txt index 4b53d041a26..9dafe34b218 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,21 @@ +Assassinate +2 B +Sorcery +Destroy target tapped creature. +spDestroyTgt:Creature.tapped + +Death Stroke +B B +Sorcery +Destroy target tapped creature. +spDestroyTgt:Creature.tapped + +Vengeance +3 W +Sorcery +Destroy target tapped creature. +spDestroyTgt:Creature.tapped + Drekavac 1 B Creature Beast diff --git a/src/forge/CardList.java b/src/forge/CardList.java index 5f3e34f5096..6ddf4cdcbf9 100644 --- a/src/forge/CardList.java +++ b/src/forge/CardList.java @@ -251,6 +251,7 @@ public class CardList implements Iterable { if(exR[j].startsWith("without")) r = r && (!c.getKeyword().contains(exR[j].substring(7))); else r = r && (c.getKeyword().contains(exR[j].substring(4))); + if(exR[j].startsWith("tapped")) r = r && (c.isTapped()); //TODO: converted mana cost //TODO: tapped //TODO: enchanted