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

fixes

parent 771d788f
No related branches found
No related tags found
1 merge request!197More fixes
......@@ -208,15 +208,23 @@ newTalent{
-- Project our melee hits
local total_hits = 0
local target_found = false
self:project(tg, x, y, function(px, py, tg, self)
local target = game.level.map(px, py, Map.ACTOR)
if target then
target_found = true
local hit = self:attackTarget(target, nil, t.getDamage(self, t), true)
if hit then
total_hits = total_hits + 1
end
end
end)
-- Assume the player canceled
if not target_found then
if swap then doWardenWeaponSwap(self, t, "bow") end
return nil
end
if total_hits > 0 then
-- Project our shear
......
......@@ -36,6 +36,9 @@ newTalent{
return {type="bolt", range=self:getTalentRange(t), talent=t, friendlyfire=false, friendlyblock=false}
end,
on_pre_use = function(self, t, silent) if not doWardenPreUse(self, "bow") then if not silent then game.logPlayer(self, "You require a bow to use this talent.") end return false end return true end,
passives = function(self, t, p)
self:talentTemporaryValue(p,"archery_pass_friendly", 1)
end,
action = function(self, t)
local swap = doWardenWeaponSwap(self, t, "bow")
......
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