mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- AF_Counters was using the wrong canTarget function.
- Removed GameAction.canTarget so it's not accidentally used again.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user