- Fixed a NPE in the new AiController code.

This commit is contained in:
Agetian
2017-08-20 03:24:25 +00:00
parent 884291a8a3
commit 9c44662f2e

View File

@@ -840,12 +840,10 @@ public class AiController {
sourceCard = sa.getHostCard();
if ("Always".equals(sa.getParam("AILogic")) && !validCards.isEmpty()) {
min = 1;
}
}
if ("VolrathsShapeshifter".equals(sa.getParam("AILogic"))) {
} else if ("VolrathsShapeshifter".equals(sa.getParam("AILogic"))) {
return SpecialCardAi.VolrathsShapeshifter.targetBestCreature(player, sa);
}
}
// look for good discards
while (count < min) {