Skip to content
Snippets Groups Projects
Commit f939b92c authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Moved on_takehit together with callback and hook.

parent 8e43d5cd
No related branches found
No related tags found
1 merge request!57Damage handlers reorder
......@@ -2597,8 +2597,6 @@ function _M:onTakeHit(value, src, death_note)
end
end
if self.on_takehit then value = self:check("on_takehit", value, src, death_note) end
-- Apply Solipsism hit
if damage_to_psi > 0 then
local t = self:getTalentFromId(self.T_SOLIPSISM)
......@@ -2776,6 +2774,8 @@ function _M:onTakeHit(value, src, death_note)
end
end
if self.on_takehit then value = self:check("on_takehit", value, src, death_note) end
local cb = {value=value}
if self:fireTalentCheck("callbackOnHit", cb, src, death_note) then
value = cb.value
......
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