summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--selector.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/selector.lua b/selector.lua
index 81e8d19..5a1cb22 100644
--- a/selector.lua
+++ b/selector.lua
@@ -59,7 +59,9 @@ function Selector:controllerPressed(control, controller)
elseif control == "right" and not self.state then
self.naut = (self.naut % n) + 1
elseif control == "attack" then
- self.state = true
+ if self.naut ~= 1 then
+ self.state = true
+ end
elseif control == "jump" then
if self.state == true then
self.state = false