Skip to content

Commit

Permalink
Add deadlock heroes to POTM selector (#277)
Browse files Browse the repository at this point in the history
* Add deadlock heroes to POTM selector

* Take game into account like civilized muppets

* JS will cry without questionmarks
  • Loading branch information
MrLotU authored Oct 23, 2024
1 parent de3253c commit ebf73c9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ export default {
const heroes = (ReactiveRoot("Heroes", {
"ids": ReactiveArray("ids")
})?.ids || []);
return [
return this.hydratedBroadcast?.event?.game !== "Overwatch" ? [{ value: null, text: "No hero" }, ...heroes.filter(h => h.game === this.hydratedBroadcast?.event?.game).map((h) => ({
text: h.name,
value: h.id
}))] : [
{ value: null, text: "No hero" },
...["DPS", "Tank", "Support"].map(key => ({
text: key,
Expand Down

0 comments on commit ebf73c9

Please sign in to comment.