Commit 2b5a137b5cbb0912e769a43488dc4276495e92cc
1 parent
0f35340e
Makes combat tables for items refer back to their source item.
Showing
1 changed file
with
8 additions
and
0 deletions
... | ... | @@ -732,6 +732,14 @@ function _M:finishEntity(level, type, e, ego_filter) |
732 | 732 | for i = 1, #s do e:stack(s[i], true) end |
733 | 733 | end |
734 | 734 | |
735 | + -- Add self-referential property to combat tables | |
736 | + if e.combat then | |
737 | + e.combat.self = e | |
738 | + end | |
739 | + if e.special_combat then | |
740 | + e.special_combat.self = e | |
741 | + end | |
742 | + | |
735 | 743 | e:resolve(nil, true) |
736 | 744 | e:check("finish", e, self, level) |
737 | 745 | self:triggerHook{"Zone:finishEntity", type=type, e=e} | ... | ... |
-
Please register or login to post a comment