Commit 02254c8c authored by mercury233's avatar mercury233 Committed by GitHub

fix special summon status of trap monster (#570)

parent eaf25b84
...@@ -2531,7 +2531,7 @@ void card::set_special_summon_status(effect* peffect) { ...@@ -2531,7 +2531,7 @@ void card::set_special_summon_status(effect* peffect) {
} }
card* pcard = peffect->get_handler(); card* pcard = peffect->get_handler();
auto cait = pduel->game_field->core.current_chain.rbegin(); auto cait = pduel->game_field->core.current_chain.rbegin();
if(!(peffect->type & 0x7f0) || pcard->is_has_relation(*cait)) { if(!(peffect->type & 0x7f0) || (pcard->is_has_relation(*cait) && !(pcard->get_type() & TYPE_TRAPMONSTER))) {
spsummon.code = pcard->get_code(); spsummon.code = pcard->get_code();
spsummon.code2 = pcard->get_another_code(); spsummon.code2 = pcard->get_another_code();
spsummon.type = pcard->get_type(); spsummon.type = pcard->get_type();
......
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