Fix counting

This commit is contained in:
TRT
2022-12-14 17:53:18 +01:00
committed by tool4EvEr
parent 8d2e56e4dc
commit 35810fcb66
4 changed files with 7 additions and 8 deletions

View File

@@ -1488,7 +1488,7 @@ public class AiController {
if (landsWannaPlay != null) {
landsWannaPlay = filterLandsToPlay(landsWannaPlay);
Log.debug("Computer " + game.getPhaseHandler().getPhase().nameForUi);
if (!landsWannaPlay.isEmpty()) {
if (landsWannaPlay != null && !landsWannaPlay.isEmpty()) {
// TODO search for other land it might want to play?
Card land = chooseBestLandToPlay(landsWannaPlay);
if ((!player.canLoseLife() || player.cantLoseForZeroOrLessLife() || ComputerUtil.getDamageFromETB(player, land) < player.getLife())