only do that for attacks
This commit is contained in:
parent
a6d1b5cc0b
commit
f0bdfd9443
@ -120,11 +120,6 @@ function attack(left: boolean) {
|
||||
|
||||
function useItem(evt: number) {
|
||||
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 });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user