Skip to content

Commit

Permalink
fix reason check in field::send_to(uint16 step
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Apr 27, 2024
1 parent 6591f36 commit 86e2b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3906,7 +3906,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
uint8 dest = pcard->sendto_param.location;
if(!(reason & REASON_RULE) &&
(pcard->get_status(STATUS_SUMMONING | STATUS_SPSUMMON_STEP)
|| (!(pcard->current.reason & (REASON_COST | REASON_SUMMON | REASONS_PROCEDURE)) && !pcard->is_affect_by_effect(pcard->current.reason_effect))
|| ((pcard->current.reason & REASON_EFFECT) && !pcard->is_affect_by_effect(pcard->current.reason_effect))
|| (dest == LOCATION_HAND && !pcard->is_capable_send_to_hand(core.reason_player))
|| (dest == LOCATION_DECK && !pcard->is_capable_send_to_deck(core.reason_player, send_activating))
|| (dest == LOCATION_REMOVED && !pcard->is_removeable(core.reason_player, pcard->sendto_param.position, reason))
Expand All @@ -3926,6 +3926,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
return FALSE;
}
case 1: {
// the entrance of release, destroy
for(auto& pcard : targets->container) {
add_process(PROCESSOR_SENDTO_REPLACE, 0, nullptr, targets, 0, 0, 0, 0, pcard);
}
Expand Down

0 comments on commit 86e2b07

Please sign in to comment.