Skip to content

Commit a82cf03

Browse files
authored
fix select forced chain on DUEL_SIMPLE_AI (#842)
1 parent f920a48 commit a82cf03

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

playerop.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ int32_t field::select_chain(uint16_t step, uint8_t playerid, uint8_t spe_count)
341341
for(const auto& ch : core.current_chain)
342342
if(ch.triggering_player == 1)
343343
act = false;
344+
for(const auto& ch : core.select_chains)
345+
if(ch.flag & CHAIN_FORCED)
346+
act = true;
344347
if(act)
345348
returns.ivalue[0] = 0;
346349
else

0 commit comments

Comments
 (0)