Here is a test map.
Instruction:
1. Type -name <yourNameHere> to change your name.
And like boris mentioned, we don't know how your hero is saved into a variable, that's why in my test map, I used it on a pre-existing unit (Blood Mage) to refer to the variable of the triggering unit.