- Prevent a class cast exception when the AI is considering how to assign blockers (the mystery is, however - why does it even try calling it with the human controller in the first place though?...)

This commit is contained in:
Agetian
2015-11-27 19:27:00 +00:00
parent 4224f8a0a8
commit ad3859d20c

View File

@@ -736,7 +736,7 @@ public class AiBlockController {
List<Card> chumpBlockers;
diff = (ai.getLife() * 2) - 5; // This is the minimal gain for an unnecessary trade
if (diff > 0 && ((PlayerControllerAi) ai.getController()).getAi().getProperty(AiProps.PLAY_AGGRO).equals("true")) {
if (ai.getController().isAI() && diff > 0 && ((PlayerControllerAi) ai.getController()).getAi().getProperty(AiProps.PLAY_AGGRO).equals("true")) {
diff = 0;
}