Commit 1954e9c3 authored by nanahira's avatar nanahira

Merge branch 'patch-trap-setinturn' into develop

parents 4d72fdb3 ab223c4e
......@@ -4177,14 +4177,12 @@ int32 field::add_chain(uint16 step) {
pduel->lua->add_param(peffect, PARAM_TYPE_EFFECT);
pduel->lua->add_param(playerid, PARAM_TYPE_INT);
auto id = clit.required_handorset_effects[i]->get_value(2);
if (id) {
if(!ceffect_unique_id) {
ceffect_unique_id = id;
} else if (ceffect_unique_id != id) {
// there are more than one types, so we can't skip
ceffect_unique_id = 0;
break;
}
if (!id || ceffect_unique_id != id) {
ceffect_unique_id = 0;
break;
}
if (!ceffect_unique_id) {
ceffect_unique_id = id;
}
}
if (ceffect_unique_id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment