mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
fix(makhno): handle season number filtering based on voice selection
This commit is contained in:
parent
2516f8b8f6
commit
e2bc12b009
@ -217,6 +217,18 @@ namespace Makhno
|
|||||||
|
|
||||||
if (season == -1)
|
if (season == -1)
|
||||||
{
|
{
|
||||||
|
if (int.TryParse(t, out int seasonVoiceIndex) && seasonVoiceIndex >= 0 && seasonVoiceIndex < playerData.Voices.Count)
|
||||||
|
{
|
||||||
|
var seasonsForVoice = GetSeasonsWithNumbers(playerData.Voices[seasonVoiceIndex])
|
||||||
|
.Select(s => s.Number)
|
||||||
|
.Distinct()
|
||||||
|
.OrderBy(n => n)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
if (seasonsForVoice.Count > 0)
|
||||||
|
seasonNumbers = seasonsForVoice;
|
||||||
|
}
|
||||||
|
|
||||||
var season_tpl = new SeasonTpl();
|
var season_tpl = new SeasonTpl();
|
||||||
foreach (var seasonNumber in seasonNumbers)
|
foreach (var seasonNumber in seasonNumbers)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user