- Choose Protection type wasn't checking if any threats existed

This commit is contained in:
Sol
2016-01-31 14:00:26 +00:00
parent 0988b11b1a
commit 448e55e628

View File

@@ -642,7 +642,7 @@ public class PlayerControllerAi extends PlayerController {
threats = combat.getAttackersBlockedBy(toSave);
}
}
if (threats != null) {
if (threats != null && !threats.isEmpty()) {
ComputerUtilCard.sortByEvaluateCreature(threats);
String s = ProtectAi.toProtectFrom(threats.get(0), sa);
if (s != null) {