Skip to content
Snippets Groups Projects
Commit 32b11e8f authored by dg's avatar dg
Browse files

Gestures correctly will not work with two handed weapons

git-svn-id: http://svn.net-core.org/repos/t-engine4@5256 51575b47-30f0-44d4-a5cc-537603b46e54
parent 56e81aab
No related branches found
No related tags found
No related merge requests found
......@@ -18,17 +18,18 @@
-- darkgod@te4.org
local function canUseGestures(self)
local nb = 0
if self:getInven("MAINHAND") then
local weapon = self:getInven("MAINHAND")[1]
if not weapon or weapon.subtype == "mindstar" then return true end
if not weapon or weapon.subtype == "mindstar" then nb = nb + 1 end
end
if self:getInven("OFFHAND") then
local weapon = self:getInven("OFFHAND")[1]
if not weapon or weapon.subtype == "mindstar" then return true end
if not weapon or weapon.subtype == "mindstar" then nb = nb + 1 end
end
return false
return nb == 2 and true or false
end
newTalent{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment