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

Weapons can now have the "double_weapon" property to enable two handed weapons...

Weapons can now have the "double_weapon" property to enable two handed weapons to count as dual wielding
parent 61ecbbd4
No related branches found
No related tags found
No related merge requests found
......@@ -2308,6 +2308,9 @@ function _M:hasDualWeapon(type)
if not self:getInven("MAINHAND") or not self:getInven("OFFHAND") then return end
local weapon = self:getInven("MAINHAND")[1]
local offweapon = self:getInven("OFFHAND")[1]
if not offweapon and weapon and weapon.double_weapon then offweapon = weapon end
if not weapon or not offweapon or not weapon.combat or not offweapon.combat then
return nil
end
......
......@@ -498,7 +498,9 @@ newTalent{
local x, y = self:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
local ox, oy = self.x, self.y
self:probabilityTravel(x, y, t.getRange(self, t), function(tx, ty) return game.level.map(tx, ty, Map.ACTOR) and true or false end)
if ox == self.x and oy == self.y then return nil end
game:playSoundNear(self, "talents/earth")
return true
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