mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user