mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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();
|
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"))) {
|
||||||
}
|
|
||||||
|
|
||||||
if ("VolrathsShapeshifter".equals(sa.getParam("AILogic"))) {
|
|
||||||
return SpecialCardAi.VolrathsShapeshifter.targetBestCreature(player, sa);
|
return SpecialCardAi.VolrathsShapeshifter.targetBestCreature(player, sa);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// look for good discards
|
// look for good discards
|
||||||
while (count < min) {
|
while (count < min) {
|
||||||
|
|||||||
Reference in New Issue
Block a user