I'm starting to think is that this isn't going to work, especially with zero-duration spells like Convalescence.
Here's the script in question:
scn gDetectHealref targetref casterlong effectCodeint indexbegin Function { target, effectcode } if target != PlayerRef let index := (ar_Find effectcode target.getActiveEffectCodes) print "=====Index of REHE: " + $index ;debug print "=====Number of Active Effects: " + $target.getActiveEffectCount ;debug let caster := target.getNthActiveEffectCaster index ;do stuff print "=====$target + " was healed by " + $caster ;debug endifend
Can this be salvaged, or is there a better way to detect the caster on hit?
edit: spelling