mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Prevent a ClassCastException when the AI is trying to retrieve the priority reduction for storm spells.
This commit is contained in:
@@ -796,7 +796,7 @@ public class AiController {
|
||||
}
|
||||
|
||||
// if the profile specifies it, deprioritize Storm spells in an attempt to build up storm count
|
||||
if (source.hasKeyword("Storm")) {
|
||||
if (source.hasKeyword("Storm") && ai.getController() instanceof PlayerControllerAi) {
|
||||
p -= (((PlayerControllerAi)ai.getController()).getAi().getIntProperty(AiProps.PRIORITY_REDUCTION_FOR_STORM_SPELLS));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user