mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fixed a NPE in the new AiController code.
This commit is contained in:
@@ -840,13 +840,11 @@ public class AiController {
|
|||||||
sourceCard = sa.getHostCard();
|
sourceCard = sa.getHostCard();
|
||||||
if ("Always".equals(sa.getParam("AILogic")) && !validCards.isEmpty()) {
|
if ("Always".equals(sa.getParam("AILogic")) && !validCards.isEmpty()) {
|
||||||
min = 1;
|
min = 1;
|
||||||
|
} else if ("VolrathsShapeshifter".equals(sa.getParam("AILogic"))) {
|
||||||
|
return SpecialCardAi.VolrathsShapeshifter.targetBestCreature(player, sa);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("VolrathsShapeshifter".equals(sa.getParam("AILogic"))) {
|
|
||||||
return SpecialCardAi.VolrathsShapeshifter.targetBestCreature(player, sa);
|
|
||||||
}
|
|
||||||
|
|
||||||
// look for good discards
|
// look for good discards
|
||||||
while (count < min) {
|
while (count < min) {
|
||||||
Card prefCard = null;
|
Card prefCard = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user