only do that for attacks

This commit is contained in:
Branden J Brown 2024-02-04 12:53:00 -06:00
parent a6d1b5cc0b
commit f0bdfd9443
1 changed files with 0 additions and 5 deletions

View File

@ -120,11 +120,6 @@ 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 });
} }