Skip to content

Commit

Permalink
apply EFFECT_SYNCHRO_LEVEL to Xyz/Link monsters
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Feb 13, 2025
1 parent fe48b4f commit 005761a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ uint32_t card::get_link() {
return data.level;
}
uint32_t card::get_synchro_level(card* pcard) {
if((data.type & (TYPE_XYZ | TYPE_LINK)) || (status & STATUS_NO_LEVEL))
if (status & STATUS_NO_LEVEL)
return 0;
uint32_t lev;
effect_set eset;
Expand All @@ -1030,7 +1030,7 @@ uint32_t card::get_synchro_level(card* pcard) {
return lev;
}
uint32_t card::get_ritual_level(card* pcard) {
if((data.type & (TYPE_XYZ | TYPE_LINK)) || (status & STATUS_NO_LEVEL))
if (status & STATUS_NO_LEVEL)
return 0;
uint32_t lev;
effect_set eset;
Expand Down Expand Up @@ -4077,7 +4077,7 @@ int32_t card::is_can_be_fusion_material(card* fcard, uint32_t summon_type) {
return TRUE;
}
int32_t card::is_can_be_synchro_material(card* scard, card* tuner) {
if(data.type & (TYPE_XYZ | TYPE_LINK))
if ((data.type & (TYPE_XYZ | TYPE_LINK)) && !is_affected_by_effect(EFFECT_SYNCHRO_LEVEL))
return FALSE;
if(!(get_synchro_type() & TYPE_MONSTER))
return FALSE;
Expand Down

0 comments on commit 005761a

Please sign in to comment.