Revert "only do that for attacks"

This reverts commit f0bdfd9443.
This commit is contained in:
Branden J Brown 2024-04-08 08:12:55 -05:00
parent 29265a18b7
commit 9b2eda842a
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ function attack(left: boolean) {
function useItem(evt: number) { function useItem(evt: number) {
const action = evt.toString() as "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7"; const action = evt.toString() as "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7";
if (notYet.value) {
storedAction.value = { action };
return;
}
storedAction.value = null;
emit('action', { action }); emit('action', { action });
} }