Skip to content
Snippets Groups Projects
Commit 4f08d486 authored by dg's avatar dg
Browse files

Combat:attackTargetWith hook passes a dam parameter to know how much damage was dealt

git-svn-id: http://svn.net-core.org/repos/t-engine4@4959 51575b47-30f0-44d4-a5cc-537603b46e54
parent 88f1af83
No related branches found
No related tags found
No related merge requests found
......@@ -746,7 +746,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
end
end
local hd = {"Combat:attackTargetWith", hitted=hitted, target=target, weapon=weapon, damtype=damtype, mult=mult}
local hd = {"Combat:attackTargetWith", hitted=hitted, target=target, weapon=weapon, damtype=damtype, mult=mult, dam=dam}
if self:triggerHook(hd) then hitted = hd.hitted end
-- Visual feedback
......
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