From 56af7e77bc3fc2c58e28dbe47dd212fe56e2bcd0 Mon Sep 17 00:00:00 2001 From: Lennert Claeys Date: Sun, 14 Jul 2024 18:11:05 +0200 Subject: [PATCH] Make last used spell correct when using local players --- src/components/organisms/Inventory.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/organisms/Inventory.vue b/src/components/organisms/Inventory.vue index ae8a00b..4db7cfb 100644 --- a/src/components/organisms/Inventory.vue +++ b/src/components/organisms/Inventory.vue @@ -40,6 +40,10 @@ const poll = () => { (spell.costMultiplier?.() || 1) * spell.cost <= mana && !Manager.instance.self.executedSpells.includes(spell); }); + } else { + if (Manager.instance.self === Manager.instance.getActivePlayer()) { + selectedSpell.value = Manager.instance.selectedSpell; + } } };