Skip to content

Commit

Permalink
Make last used spell correct when using local players
Browse files Browse the repository at this point in the history
  • Loading branch information
lorgan3 committed Jul 14, 2024
1 parent 047b929 commit 56af7e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/organisms/Inventory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
};
Expand Down

0 comments on commit 56af7e7

Please sign in to comment.