From 3b292208dddd27a539d6c20f63a39983225c0bf8 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 03:53:25 +0000 Subject: [PATCH] Added the Loxodon Punisher test to the CardList getCreature() code for Sword of the Meek and Umezawa's Jitte. --- src/forge/CardFactory_Equipment.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/forge/CardFactory_Equipment.java b/src/forge/CardFactory_Equipment.java index f81f24790eb..813f414bf6a 100644 --- a/src/forge/CardFactory_Equipment.java +++ b/src/forge/CardFactory_Equipment.java @@ -66,6 +66,14 @@ class CardFactory_Equipment { } }); // list.remove(card); // if mana-only cost, allow self-target + + // is there at least 1 Loxodon Punisher to target + + CardList equipMagnetList = list.getName("Loxodon Punisher"); + if (equipMagnetList.size() != 0) { + return equipMagnetList; + } + return list; }//getCreature() @@ -275,6 +283,14 @@ class CardFactory_Equipment { } }); // list.remove(card); // if mana-only cost, allow self-target + + // is there at least 1 Loxodon Punisher to target + + CardList equipMagnetList = list.getName("Loxodon Punisher"); + if (equipMagnetList.size() != 0) { + return equipMagnetList; + } + return list; }//getCreature()