- AF_Counters was using the wrong canTarget function.

- Removed GameAction.canTarget so it's not accidentally used again.
This commit is contained in:
jendave
2011-08-06 09:06:08 +00:00
parent 7e084c9313
commit a65bc3d54d
2 changed files with 1 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ public class AbilityFactory_Counters {
list = new CardList(AllZone.getZone(Constant.Zone.Play, player).getCards()); list = new CardList(AllZone.getZone(Constant.Zone.Play, player).getCards());
list = list.filter(new CardListFilter() { list = list.filter(new CardListFilter() {
public boolean addCard(Card c) { public boolean addCard(Card c) {
return AllZone.GameAction.canTarget(c, source); return CardFactoryUtil.canTarget(c, source);
} }
}); });

View File

@@ -3087,12 +3087,6 @@ public class GameAction {
return true; return true;
} }
public boolean canTarget(Card target, Card source) {
if(target.getKeyword().contains("Cannot be target of spells or abilities")) return false;
return true;
}
public void playCard(Card c) { public void playCard(Card c) {
HashMap<String, SpellAbility> map = new HashMap<String, SpellAbility>(); HashMap<String, SpellAbility> map = new HashMap<String, SpellAbility>();
SpellAbility[] abilities = canPlaySpellAbility(c.getSpellAbility()); SpellAbility[] abilities = canPlaySpellAbility(c.getSpellAbility());