Compare commits

..

1 Commits

Author SHA1 Message Date
9b2eda842a Revert "only do that for attacks"
This reverts commit f0bdfd9443.
2024-04-08 08:12:55 -05:00

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 });
} }