mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed a NPE in the new AiController code.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user