I do need some help, cos during the match in my workshop game, when I was playing as Junkrat, then another teammate who just joined the game chose D.Va or Wrecking Ball, I got forced out to pick another hero, and made Junkrat unable to be chosen again. What’s wrong?
From my share code: ZMMJC
rule("If D.Va is chosen, disable Wrecking Ball (1 mech tank only per team)")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
"If D.Va is chosen"
Hero Of(Event Player) == Hero(D.Va);
}
actions
{
"Wrecking Ball will be disabled"
Set Player Allowed Heroes(All Players(Team Of(Event Player)), Remove From Array(Allowed Heroes(Event Player), Hero(
Wrecking Ball)));
}
}
rule("If Wrecking Ball is chosen, disable D.Va (1 mech tank only per team)")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
"If Wrecking Ball is chosen"
Hero Of(Event Player) == Hero(Wrecking Ball);
}
actions
{
"D.Va will be disabled"
Set Player Allowed Heroes(All Players(Team Of(Event Player)), Remove From Array(Allowed Heroes(Event Player), Hero(D.Va)));
}
}