i just did some in-game testing
variables
{
player:
0: Target
1: Effect
}
rule("Use Chaos Orb")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
(Is Duplicating(Event Player) ? Hero Being Duplicated(Event Player) : Hero Of(Event Player)) == Hero(Zenyatta);
Is Button Held(Event Player, Button(Ability 2)) == True;
}
actions
{
Event Player.Target = First Of(Sorted Array(Filtered Array(All Living Players(Opposite Team Of(Team Of(Event Player))),
Is In Line of Sight(Eye Position(Event Player), Eye Position(Current Array Element), Barriers Do Not Block LOS)),
Angle Between Vectors(Facing Direction Of(Event Player), Direction Towards(Eye Position(Event Player), Eye Position(
Current Array Element)))));
Create Homing Projectile(Orb Projectile, Event Player, Null, Null, To World, Damage, Opposite Team Of(Team Of(Event Player)), 50,
1, 4, Bad Explosion, Explosion Sound, 0, 20, 8, 6, Evaluate Once(Event Player.Target), 0.500);
}
}
rule("Chaos Orb: Random Status")
{
event
{
Player Took Damage;
All;
All;
}
conditions
{
(Is Duplicating(Attacker) ? Hero Being Duplicated(Attacker) : Hero Of(Attacker)) == Hero(Zenyatta);
Event Ability == Null;
}
actions
{
Victim.Effect = Random Integer(0, 6);
If(Event Player.Effect == 0);
Set Status(Victim, Attacker, Hacked, 5);
Else If(Event Player.Effect == 1);
Set Status(Victim, Attacker, Burning, 5);
Else If(Event Player.Effect == 2);
Set Status(Victim, Attacker, Knocked Down, 1);
Else If(Event Player.Effect == 3);
Set Status(Victim, Attacker, Asleep, 3);
Else If(Event Player.Effect == 4);
Set Status(Victim, Attacker, Frozen, 2);
Else If(Event Player.Effect == 5);
Set Status(Victim, Attacker, Rooted, 3);
Else If(Event Player.Effect == 6);
Set Status(Victim, Attacker, Stunned, 2);
End;
}
}
works, as create projectile seems to use Null instead of Primary Fire for the Event Ability
(i dont think its always worked like that, though i could be wrong). this makes it actually really easy to detect. unless you have more then one custom projectile per hero. (which i dont think you do, so thats fine)
also NEVER change the Amount Scaler from 1, when using AoE projectiles. it says it’ll become the minimum damage but thats a lie, has been since it was first added as an action. it might do what it says, but it definitely scales the entire damage still.
(i did test 25 amount scaler before & it was 1 hit killing everything pretty much, so its definitely not patched yet)