mirror of
https://github.com/edo9300/ygopro-core
synced 2026-08-25 16:23:07 -04:00
add 3rd return parameter to EFFECT_SPSUMMON_PROC's value
Partial workaround due to regression caused by previous commit a629818557
The 3rd value indicates whether the core should check for zone availability or not, thus reverting to the behaviour prior to the change
This commit is contained in:
parent
66ede9b2db
commit
fd2a557167
1 changed files with 2 additions and 1 deletions
3
card.cpp
3
card.cpp
|
|
@ -2764,7 +2764,8 @@ void card::filter_spsummon_procedure(uint8_t playerid, effect_set* peset, uint32
|
|||
peffect->get_value(this, 0, retval);
|
||||
uint32_t sumtype = retval.size() > 0 ? static_cast<uint32_t>(retval[0]) : 0;
|
||||
uint32_t zone = retval.size() > 1 ? static_cast<uint32_t>(retval[1]) : 0xff;
|
||||
if(zone != 0xff && pduel->game_field->get_useable_count(this, toplayer, LOCATION_MZONE, playerid, LOCATION_REASON_TOFIELD, zone, nullptr) <= 0)
|
||||
bool ignore_zone_check = retval.size() > 2 ? static_cast<bool>(retval[2]) : false;
|
||||
if(zone != 0xff && !ignore_zone_check && pduel->game_field->get_useable_count(this, toplayer, LOCATION_MZONE, playerid, LOCATION_REASON_TOFIELD, zone, nullptr) <= 0)
|
||||
continue;
|
||||
if(summon_type != 0 && summon_type != sumtype)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue