diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 809ac396..dc648faf 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -1677,6 +1677,11 @@ public class MobileFSM { powerTokens.removeAll(purgeTokens); + // Sanity check + + if (powerTokens.isEmpty()) + return false; + // Pick random spell from our list of powers int powerToken = powerTokens.get(ThreadLocalRandom.current().nextInt(powerTokens.size()));