Commit b942dd75 authored by wind2009's avatar wind2009

Merge remote-tracking branch 'purero/patch-trap-setinturn' into develop

parents a6e26326 ab223c4e
......@@ -4163,14 +4163,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