mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix AI error
This commit is contained in:
@@ -349,6 +349,9 @@ public class CountersMoveAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
} else if (sa.getMaxTargets() == 2) {
|
||||||
|
// TODO
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// SA uses target for Defined
|
// SA uses target for Defined
|
||||||
@@ -361,10 +364,8 @@ public class CountersMoveAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Card src = srcCards.get(0);
|
final Card src = srcCards.get(0);
|
||||||
if (cType != null) {
|
if (cType != null && src.getCounters(cType) <= 0) {
|
||||||
if (src.getCounters(cType) <= 0) {
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Card lki = CardUtil.getLKICopy(src);
|
Card lki = CardUtil.getLKICopy(src);
|
||||||
|
|||||||
Reference in New Issue
Block a user