mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-02 16:20:36 -05:00
Fix counterpick all won modes getting banned
This commit is contained in:
@@ -197,9 +197,11 @@ function unavailableModes({
|
||||
}): Set<ModeShort> {
|
||||
if (!maps?.pickBan || maps.pickBan === "BAN_2") return new Set();
|
||||
|
||||
// can't pick the same mode last won on
|
||||
const result = new Set(
|
||||
results
|
||||
.filter((result) => result.winnerTeamId === pickerTeamId)
|
||||
.slice(-1)
|
||||
.map((result) => result.mode),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user