Hi, I've been wondering this for a couple of days and tried to google answers but didn't find anything...
I have this buff behaviour that keeps the hero cloaked, but if the unit deals damage or it's being dealt to, I want the buff to be removed, any idea how might I be able to accomplish this?
I've already tried to accomplish it somehow with damage response, but if I put location to defender,
I could probably find a way to make myself visible when I get hit, but I can't really test it atm.
When I put location to attacker the effect I put on 'handle' is applied to the unit I'm attacking.
Also I've tried to do this with Validators but I haven't been able to find a good Validator combination to execute it like I want it,
only one even close is 'Caster not attacking' but I turn visible a soon as I order the unit to attack.
Please note: that what I meant is that the hero is dealt with ex. AoE attack etc.
I have this buff behaviour that keeps the hero cloaked, but if the unit deals damage or it's being dealt to, I want the buff to be removed, any idea how might I be able to accomplish this?
I've already tried to accomplish it somehow with damage response, but if I put location to defender,
I could probably find a way to make myself visible when I get hit, but I can't really test it atm.
When I put location to attacker the effect I put on 'handle' is applied to the unit I'm attacking.
Also I've tried to do this with Validators but I haven't been able to find a good Validator combination to execute it like I want it,
only one even close is 'Caster not attacking' but I turn visible a soon as I order the unit to attack.
Please note: that what I meant is that the hero is dealt with ex. AoE attack etc.