diff options
author | Aki <nthirtyone@gmail.com> | 2017-02-09 17:51:06 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-02-09 17:51:06 +0100 |
commit | c4cec4731cdf10ac2740775c08efbda571e58040 (patch) | |
tree | bd19cb47f13eb698d36fe457cb54e352bf55086c | |
parent | b9bf644482bb68a94d19f9c052a204f54f963358 (diff) | |
download | roflnauts-c4cec4731cdf10ac2740775c08efbda571e58040.zip roflnauts-c4cec4731cdf10ac2740775c08efbda571e58040.tar.gz roflnauts-c4cec4731cdf10ac2740775c08efbda571e58040.tar.bz2 |
Selector avoid randomizing random
-rw-r--r-- | selector.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selector.lua b/selector.lua index 851e451..61401e7 100644 --- a/selector.lua +++ b/selector.lua @@ -284,7 +284,7 @@ function Selector:controlpressed(set, action, key) if action == "attack" then local name = self:getListValue(self:getSelection(n)) if name == "random" then - self:setSelection(n, self:rollRandom({1})) -- avoid empty naut + self:setSelection(n, self:rollRandom({1,2})) -- avoid empty naut self.locks[n] = true else -- If not empty or if first is allowed. Additionaly must be unique selection. |