Commit ab223c4e authored by nanahira's avatar nanahira

fix

parent d74180b0
...@@ -4163,14 +4163,12 @@ int32 field::add_chain(uint16 step) { ...@@ -4163,14 +4163,12 @@ int32 field::add_chain(uint16 step) {
pduel->lua->add_param(peffect, PARAM_TYPE_EFFECT); pduel->lua->add_param(peffect, PARAM_TYPE_EFFECT);
pduel->lua->add_param(playerid, PARAM_TYPE_INT); pduel->lua->add_param(playerid, PARAM_TYPE_INT);
auto id = clit.required_handorset_effects[i]->get_value(2); auto id = clit.required_handorset_effects[i]->get_value(2);
if (id) { if (!id || ceffect_unique_id != 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; ceffect_unique_id = 0;
break; break;
} }
if (!ceffect_unique_id) {
ceffect_unique_id = id;
} }
} }
if (ceffect_unique_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