Skip to content
Snippets Groups Projects
Commit 24df8ef5 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@6798 51575b47-30f0-44d4-a5cc-537603b46e54
parent 815bfb98
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ function _M:archeryAcquireTargets(tg, params)
return nil
end
local infinite = ammo.infinite or self:attr("infinite_ammo")
local infinite = ammo.infinite or self:attr("infinite_ammo") or params.infinite
if not ammo or (ammo.combat.shots_left <= 0 and not infinite) then
game.logPlayer(self, "You do not have enough ammo left!")
......@@ -262,7 +262,7 @@ local function archery_projectile(tx, ty, tg, self, tmp)
DamageType:get(damtype).projector(self, target.x, target.y, damtype, math.max(0, dam), tmp)
game.level.map:particleEmitter(target.x, target.y, 1, "archery")
if not tg.no_archery_particle then game.level.map:particleEmitter(target.x, target.y, 1, "archery") end
hitted = true
if talent.archery_onhit then talent.archery_onhit(self, talent, target, target.x, target.y) 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