Skip to content
Snippets Groups Projects
Commit f65bae30 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

some warden swap improvements

parent 5ea671c3
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ doWardenWeaponSwap = function(self, t, type, silent)
if type == "blade" then
local mainhand, offhand = self:hasDualWeapon()
if not mainhand then
if not mainhand or self:hasArcheryWeapon("bow") then -- weird but this is lets ogers offhanding daggers still swap
swap = true
warden_weapon = "blade"
end
......
......@@ -263,7 +263,13 @@ techs_wil_req5 = {
-- Archery range talents
archery_range = function(self, t)
local weapon, ammo, offweapon = self:hasArcheryWeapon()
if not weapon or not weapon.combat then return 1 end
if not weapon or not weapon.combat then
if self:attr("warden_swap") and self:hasArcheryWeaponQS() then
weapon, ammo, offweapon = self:hasArcheryWeaponQS()
else
return 1
end
end
return math.min(weapon.combat.range or 6, offweapon and offweapon.combat and offweapon.combat.range or 40)
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