From 1945412f5af867983733814cdee7754e5f780218 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 15 Mar 2023 09:25:18 -0400 Subject: [PATCH] Remove needs an object not an index value. --- src/engine/ai/MobileFSM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 514c1a34..1a28339a 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -1669,7 +1669,7 @@ public class MobileFSM { String des = act.stackType; if (target.getEffects() != null && target.getEffects().containsKey(des)) - powerTokens.remove(powerToken); + powerTokens.remove(Integer.valueOf(powerToken)); } }