OW1 Mei Freeze Cancel

I’m working on a knock off of Mei’s old freeze which is simple to do but I don’t know how to make it cancel whenever Mei stops doing damage.
Heres the code:

Is Firing Primary(Event Player) == True
Players Within Radius(Event Player, 5, Team Of(Attacker), Surfaces And Enemy Barriers) == True
If(True)
Wait(3, Ignore Condition)
Set Status(Victim, Event Player, Frozen, 3

Feel free to also let me know about things I need to redo or change because I’m just beginning to use workshop.

Not tested but maybe this will work:

rule ("Rule 1") {
    event {
        Player Took Damage;
        All;
        All;
    }
    conditions {
        Hero Of(Attacker) == Hero(Mei);
        Event Ability == Button(Primary Fire);
    }
    actions {
        Wait(3, Abort When False);
        Set Status(Victim, Attacker, Frozen, 3);
        Wait Until(Compare(Event Damage, ==, 0), 3);
        Clear Status(Victim, Frozen);
    }
}
3 Likes

Changed the condition of button pressed to button held and it worked! tysm