mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed AI chosing illigal targets with DestroyAll effects (Mogg Infestation).
This commit is contained in:
@@ -40,8 +40,12 @@ public class DestroyAllAi extends SpellAbilityAi {
|
||||
|
||||
if (sa.usesTargeting()) {
|
||||
sa.resetTargets();
|
||||
sa.getTargets().add(ai.getOpponent());
|
||||
computerlist.clear();
|
||||
if (sa.canTarget(ai.getOpponent())) {
|
||||
sa.getTargets().add(ai.getOpponent());
|
||||
computerlist.clear();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
humanlist = CardLists.filter(humanlist, predicate);
|
||||
|
||||
Reference in New Issue
Block a user