mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Little fix in moveCounterDoTriggerAI.
This commit is contained in:
@@ -1987,7 +1987,9 @@ public class AbilityFactory_Counters {
|
|||||||
|
|
||||||
Counters cType = Counters.valueOf(params.get("CounterType"));
|
Counters cType = Counters.valueOf(params.get("CounterType"));
|
||||||
ArrayList<Card> srcCards = AbilityFactory.getDefinedCards(host, params.get("Source"), sa);
|
ArrayList<Card> srcCards = AbilityFactory.getDefinedCards(host, params.get("Source"), sa);
|
||||||
|
ArrayList<Card> destCards = AbilityFactory.getDefinedCards(host, params.get("Defined"), sa);
|
||||||
if (srcCards.size() > 0 && cType.equals(Counters.P1P1) //move +1/+1 counters away from permanents that cannot use them
|
if (srcCards.size() > 0 && cType.equals(Counters.P1P1) //move +1/+1 counters away from permanents that cannot use them
|
||||||
|
&& destCards.size() > 0 && destCards.get(0).getController().isComputer()
|
||||||
&& (!srcCards.get(0).isCreature() || srcCards.get(0).hasStartOfKeyword("CARDNAME can't attack"))) {
|
&& (!srcCards.get(0).isCreature() || srcCards.get(0).hasStartOfKeyword("CARDNAME can't attack"))) {
|
||||||
chance = true;
|
chance = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user