Skip to content
Snippets Groups Projects
Commit 97825fc0 authored by dg's avatar dg
Browse files

do not damage for 0

git-svn-id: http://svn.net-core.org/repos/t-engine4@496 51575b47-30f0-44d4-a5cc-537603b46e54
parent 48c06e63
No related branches found
No related tags found
No related merge requests found
......@@ -265,12 +265,16 @@ function _M:attackTargetWith(target, weapon, damtype, mult)
-- Melee project
if hitted then for typ, dam in pairs(self.melee_project) do
DamageType:get(typ).projector(self, target.x, target.y, typ, dam)
if dam > 0 then
DamageType:get(typ).projector(self, target.x, target.y, typ, dam)
end
end end
-- Reactive target on hit damage
if hitted then for typ, dam in pairs(target.on_melee_hit) do
DamageType:get(typ).projector(target, self.x, self.y, typ, dam)
if dam > 0 then
DamageType:get(typ).projector(target, self.x, self.y, typ, dam)
end
end end
-- Riposte!
......
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