Tell why a champ select makes a champion unavailable (#74)

Split the excluded set into banned and taken_by_ally, add
ChampSelect::unavailability (banned, taken_by_ally, not_offered; never for
the player's own pick) and make the anvil list an Option so an unreadable
list is not read as an empty one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nessarandClaude Opus 5.5 committed 2026-11-20 21:12:42 +01:00
1 parent 9c13e14072
commit bd4de1ec05
6 files changed
+302 -59

No files matched your search

+3 -2
View File
@@ -684,7 +684,8 @@ struct ClientState {
pub struct RawChampSelect {
pub pickable: String,
pub disabled: String,
pub anvil: String,
/// `None` when the client's anvil list request fails.
pub anvil: Option<String>,
pub session: String,
}
@@ -837,7 +838,7 @@ impl GameClientSource for FakeClient {
Ok((
raw.pickable.clone(),
raw.disabled.clone(),
Some(raw.anvil.clone()),
raw.anvil.clone(),
))
},
)