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

New hook "Combat:attackTargetWith:attackerBonuses"

parent 21449940
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -437,6 +437,12 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
repelled = t.isRepelled(target, t)
end
local hd = {"Combat:attackTargetWith:attackerBonuses", target=target, weapon=weapon, damtype=damtype, mult=mult, dam=dam, apr=apr, atk=atk, def=def, armor=armor}
if self:triggerHook(hd) then
target, weapon, damtype, mult, dam, apr, atk, def, armor = hd.target, hd.weapon, hd.damtype, hd.mult, hd.dam, hd.apr, hd.atk, hd.def, hd.armor
if hd.stop then return end
end
-- If hit is over 0 it connects, if it is 0 we still have 50% chance
local hitted = false
local crit = false
......
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