mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Choose Protection type wasn't checking if any threats existed
This commit is contained in:
@@ -642,7 +642,7 @@ public class PlayerControllerAi extends PlayerController {
|
|||||||
threats = combat.getAttackersBlockedBy(toSave);
|
threats = combat.getAttackersBlockedBy(toSave);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (threats != null) {
|
if (threats != null && !threats.isEmpty()) {
|
||||||
ComputerUtilCard.sortByEvaluateCreature(threats);
|
ComputerUtilCard.sortByEvaluateCreature(threats);
|
||||||
String s = ProtectAi.toProtectFrom(threats.get(0), sa);
|
String s = ProtectAi.toProtectFrom(threats.get(0), sa);
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user