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

and this is less hacky ;)

parent 0e150e52
No related branches found
No related tags found
No related merge requests found
......@@ -386,7 +386,9 @@ local function archery_projectile(tx, ty, tg, self, tmp)
end
end
if tg.archery.crushing_blow then self:attr("crushing_blow", 1) end
DamageType:get(damtype).projector(self, target.x, target.y, damtype, math.max(0, dam), tmp)
if tg.archery.crushing_blow then self:attr("crushing_blow", -1) end
if not tg.no_archery_particle then game.level.map:particleEmitter(target.x, target.y, 1, "archery") end
hitted = true
......
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