CLAUDE: Fix Event ID 9 gauntlet rewards missing cardset assignment
Event ID 9 (Live 25) gauntlet rewards were being given without cardset_id assigned, causing Team Choice packs to be unconfigured and unusable. Root cause: Line 1923 checked if event ID was in [3, 4, 5, 6, 8], but Event ID 9 was missing from this list. This caused the entire reward assignment block (lines 1923-1957) including Event 9's cardset logic (lines 1945-1948) to be skipped. Event 9 should assign: - cardset_id 27 for standard packs (2005 Live) - cardset_id 26 for Promo Choice packs (pack_type_id 9) Added 9 to the event ID list at line 1923 to enable proper cardset assignment for Event 9 gauntlet rewards. Fixes: Team Choice packs from Event 9 gauntlet missing cardset_id 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f7f37c9d95
commit
e1f59cc49e
@ -1856,7 +1856,7 @@ async def end_run(this_run, this_event, this_team: Team, bot=None, main_team=Non
|
||||
await send_to_channel(
|
||||
bot,
|
||||
'pd-news-ticker',
|
||||
content=f'The **{team_name}** have completed their **{this_event["name"]} Gauntlet** run '
|
||||
content=f'The **{team_name}**\'s **{this_event["name"]} Gauntlet** run has ended '
|
||||
f'with a final record of {this_run["wins"]}-{this_run["losses"]}.'
|
||||
)
|
||||
|
||||
@ -1920,7 +1920,7 @@ async def post_result(run_id: int, is_win: bool, this_team: Team, bot, channel,
|
||||
await helpers.give_cards_to_team(
|
||||
main_team, player_ids=[x['reward']['player']['player_id']], pack_id=this_pack['id'])
|
||||
reward_string += f'- {helpers.player_desc(x["reward"]["player"])}\n'
|
||||
elif x['reward']['pack_type'] and this_event['id'] in [3, 4, 5, 6, 8]:
|
||||
elif x['reward']['pack_type'] and this_event['id'] in [3, 4, 5, 6, 8, 9]:
|
||||
if this_event['id'] == 3:
|
||||
cardset_id = 13
|
||||
team_id = 58
|
||||
|
||||
Loading…
Reference in New Issue
Block a user