Skip to content
Snippets Groups Projects
Commit 2b5a137b authored by Ryan Yappert's avatar Ryan Yappert
Browse files

Makes combat tables for items refer back to their source item.

parent 0f35340e
No related branches found
No related tags found
1 merge request!693Makes combat tables for items refer back to their source item.
......@@ -732,6 +732,14 @@ function _M:finishEntity(level, type, e, ego_filter)
for i = 1, #s do e:stack(s[i], true) end
end
-- Add self-referential property to combat tables
if e.combat then
e.combat.self = e
end
if e.special_combat then
e.special_combat.self = e
end
e:resolve(nil, true)
e:check("finish", e, self, level)
self:triggerHook{"Zone:finishEntity", type=type, e=e}
......
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