Skip to content
Snippets Groups Projects
Commit ec9c9daf authored by DarkGod's avatar DarkGod
Browse files

mouahah

parent 793fe57b
No related branches found
No related tags found
No related merge requests found
......@@ -1996,7 +1996,7 @@ function _M:getFreeHands()
end
--- Check if the actor dual wields
function _M:hasDualWeapon()
function _M:hasDualWeapon(type)
if self:attr("disarmed") then
return nil, "disarmed"
end
......@@ -2007,6 +2007,8 @@ function _M:hasDualWeapon()
if not weapon or not offweapon or not weapon.combat or not offweapon.combat then
return nil
end
if type and weapon.combat.talented ~= type then return nil end
if type and offweapon.combat.talented ~= type then return nil end
return weapon, offweapon
end
......
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