I’m trying to get it so that when I heal myself or someone else as (an undecided character), that the healing I give ignores anti-heal effects.
However, the Workshop doesn’t have anti-heal as an effect, so I don’t know how to detect it other than maybe Healing = Number: 0. But if I’m right, that would only take into account Ana’s Bionade and Junker Queen’s Ult., not the Damage role passive which I also want to consider but would need a separate “healing percentage is equal too” condition, and I’m pretty sure it would cause it to ping constantly unless the target of my heals was actively being healed by me.
And I don’t want to cleanse the anti-heal effect (which I can’t do anyways since there isn’t a cleanse in the Workshop. Phasing them out could work, but not ideal) so am I just out of luck?
Any help appreciated!
to check if they are anti-healed:
you’ll need a on damage taken
trigger with conditions of Hero of(Attacker) == Hero(Ana)
& Event Ability == Button(Ability 2)
with an action of Modify Player Variable(Victim, {variable of choice}, Max, [nade duration])
(i did this for my AI Ana bot ages ago to make sure the bot didnt try nading itself when it wouldn’t be healed by its nade)
as well as a similar rule for junker queen to detect when she applies anti-heal with her ultimate. conditions Hero of(Attacker) == Hero(Junker Queen)
& Event Ability == Button(Ultimate)
with an action of Modify Player Variable(Victim, {variable of choice}, Max, [rampage duration])
[nade duration] = 3 seconds
[rampage duration] = 4.5 seconds
then just have the variable that stores the timer always be chased to 0 at a rate of 1. and to check if they are anti-healed just check if the variable is greater than 0.
To replica a anti-heal effect
Setup a variable for when its enabled / disabled either with a Boolean value of a Double/Float value as a timer.
setup a global healing modification that updates & affects Filtered Array(All Players(Team All), compare(player variable(current array element, [timer variable]) > 0))
which changes the healing% given to 0% for all valid players.
if you want to bypass the Anti-heal
then just whenever you want to heal the target instead of using a heal(event player, [amount])
instead do set player health(Event player, Health of(Event player) + [amount])
i think that covers anything you might need to know about working with / around anti-heal but im not sure, i haven’t done any workshop in a few years. haven’t even played the game. everything i’ve written here is written from memory.
1 Like