Commit 0eec9ae4 authored by Aephiex's avatar Aephiex Committed by GitHub

fix Card.IsSpecialSummonableCard (#474)

parent 11772de2
...@@ -3000,9 +3000,12 @@ int32 card::is_summonable_card() { ...@@ -3000,9 +3000,12 @@ int32 card::is_summonable_card() {
int32 card::is_spsummonable_card() { int32 card::is_spsummonable_card() {
if(!(data.type & TYPE_MONSTER)) if(!(data.type & TYPE_MONSTER))
return FALSE; return FALSE;
if(is_affected_by_effect(EFFECT_REVIVE_LIMIT) && !is_status(STATUS_PROC_COMPLETE) if(is_affected_by_effect(EFFECT_REVIVE_LIMIT) && !is_status(STATUS_PROC_COMPLETE)) {
&& (current.location & (LOCATION_GRAVE | LOCATION_REMOVED | LOCATION_SZONE))) if(current.location & (LOCATION_GRAVE | LOCATION_REMOVED | LOCATION_SZONE))
return FALSE;
if((data.type & TYPE_PENDULUM) && current.location == LOCATION_EXTRA && (current.position & POS_FACEUP))
return FALSE; return FALSE;
}
effect_set eset; effect_set eset;
filter_effect(EFFECT_SPSUMMON_CONDITION, &eset); filter_effect(EFFECT_SPSUMMON_CONDITION, &eset);
for(int32 i = 0; i < eset.size(); ++i) { for(int32 i = 0; i < eset.size(); ++i) {
......
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