Skip to content

Commit c83e811

Browse files
committed
skip synchro selection when full mat group is provided
1 parent 60c3c4f commit c83e811

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

operations.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5305,6 +5305,14 @@ int32_t field::select_synchro_material(int16_t step, uint8_t playerid, card* pca
53055305
case 0: {
53065306
if(core.select_cards.size() == 0)
53075307
return TRUE;
5308+
if(core.summon_cancelable == FALSE && mg && min == max && mg->container.size() == min + 1) {
5309+
group* pgroup = pduel->new_group();
5310+
pgroup->container.insert(mg->container.begin(), mg->container.end());
5311+
pduel->lua->add_param(pgroup, PARAM_TYPE_GROUP);
5312+
pduel->restore_assumes();
5313+
core.limit_tuner = 0;
5314+
return TRUE;
5315+
}
53085316
pduel->write_buffer8(MSG_HINT);
53095317
pduel->write_buffer8(HINT_SELECTMSG);
53105318
pduel->write_buffer8(playerid);

0 commit comments

Comments
 (0)