I'm trying to trigger special effects based on how a monster was killed (so a main-hand attack triggers one effect, an off-hand attack triggers a different effects, talents and DoTs a third effect, etc.).
It looks like I could make up a last_damage_source field and set it as appropriate in preUseTalent, attackTarget, timedEffects, etc., then check it in die or on_die. But I don't know if I'm missing anything or if there's a cleaner solution.
Ideas or suggestions?
Thanks.
How to tell how someone died
Moderator: Moderator
Re: How to tell how someone died
A different solution would be to put in in Combat.lua (and elsewhere). You would just add checks for "if target.dead then" at the appropriate points.
Re: How to tell how someone died
Your solution sounds about right, since it's your own module you do control everything so should work.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
