Need help with player dealt damage event

Hi! I’ve been trying to make winston charge up damage dealt on enemy, just like illari ultimate.
However, I can’t get it to work; I’ve made a rule for winston players from team 2 to edit player variable by adding event damage to its base ammount - ( 0 ).
Other rule makes enemies “explode” once the variable reaches 75dmg and resets it back to 0. As you can guess, it doesn’t work. Any ideas?
Doing this type of rule for the first time. I’ve got no conditions for the first rule, as I have no ideas what i could put there btw.

i cant tell you exactly what is wrong, because A: i can’t see the code itself & B: you haven’t really explained what’s wrong with it. like if the variable being increased but not triggering the explode code or is it just not increasing for example.

but i can tell you about an issue with Player Dealt Damage, it’ll only trigger for the first Target damaged by an AOE attack such as Winston Primary Fire, this can be avoided by instead using a Player Took Damage

it behaves this way due to how rules work, a rule can only run if its not already running with each player having their own instance of it (or just the server, if its a global rule). when you deal damage to multiple enemies on the same frame 0.016 seconds then it’ll start running the rule for the first target, then try to, but fail for any others because its already running (actually i think that issue only occurs if there is any waiting action in the rule, but still good to know).

Player Took Damage avoids this because each player has their own instance that they run, so they get damaged and they call their own rule thus there is no error from it already running.

without more information, that is all i can say to help (if it even applies to your issue / rules).

FIXED, I set attacker == hero(winston) , it had to be Hero of(attacker) == Hero(Winston)

How could I make it so it damages players in radius BESIDES the target? Would filtered array work? (It did)

well as your typed, filtered array does work. but there is already a filter action for that exact thing, called Players within Radius with parameters of Vector, Number & Team. it can also be made the input of an something like a filtered array or sorted array.

For the Vector input you may need to consider to pick either a player value or any position value as the center position. It may behave like Closest Player To, meaning if you use any position vector the player or first target may be included in that array which Players Within Radius returns, otherwise if you use the player value as center, that player or first target may be excluded and won’t be appended to the array said action will return. So you may need to choose with care and what goal is to be achieved by that.