mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Attempting to improve CountersPutAi when targeting the AI player itself (shouldn't try it if the AI player has no counters at all)
-TODO: isn't the inner condition check somewhat off too? (will currently attempt targeting every time eachExisting is false, even if the AI has no counters at all).
This commit is contained in:
@@ -199,11 +199,13 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
if (sa.canTarget(ai)) {
|
if (sa.canTarget(ai)) {
|
||||||
// don't target itself when its forced to add poison
|
// don't target itself when its forced to add poison
|
||||||
// counters too
|
// counters too
|
||||||
|
if (!ai.getCounters().isEmpty()) {
|
||||||
if (!eachExisting || ai.getPoisonCounters() < 5) {
|
if (!eachExisting || ai.getPoisonCounters() < 5) {
|
||||||
sa.getTargets().add(ai);
|
sa.getTargets().add(ai);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user