This commit is contained in:
5 files changed
+189
-78
No files matched your search
@@ -235,21 +235,25 @@ impl DaemonStateMachine {
|
||||
GameEvent::GameStart(info) => {
|
||||
// Extract summoner spells from session data if available
|
||||
let summoner_spells = info.session.as_ref().and_then(|session| {
|
||||
session.player_champion_selections.first().map(|selection| {
|
||||
SummonerSpells {
|
||||
session
|
||||
.player_champion_selections
|
||||
.first()
|
||||
.map(|selection| SummonerSpells {
|
||||
spell1_id: selection.spell1_id,
|
||||
spell2_id: selection.spell2_id,
|
||||
spell1_name: crate::lqp::spell_id_to_name(selection.spell1_id),
|
||||
spell2_name: crate::lqp::spell_id_to_name(selection.spell2_id),
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
// Extract puuid from session data if available
|
||||
let puuid = info.session.as_ref().and_then(|session| {
|
||||
session.player_champion_selections.first().map(|selection| selection.puuid.clone())
|
||||
session
|
||||
.player_champion_selections
|
||||
.first()
|
||||
.map(|selection| selection.puuid.clone())
|
||||
});
|
||||
|
||||
|
||||
Some(StateTransition::GameStarted {
|
||||
game_id: info.game_id,
|
||||
champion: info.champion.clone(),
|
||||
|
||||
Reference in new issue
Block a user