Skip to content

Commit

Permalink
Make cards in deck releasable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind2009-Louse committed Dec 28, 2024
1 parent 83936a3 commit 36cab1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,7 @@ int32_t field::destroy(uint16_t step, group * targets, effect * reason_effect, u
return TRUE;
}
int32_t field::release_replace(uint16_t step, group* targets, card* target) {
if(!(target->current.location & (LOCATION_ONFIELD | LOCATION_HAND))) {
if(!(target->current.location & (LOCATION_ONFIELD | LOCATION_HAND | LOCATION_DECK))) {
target->current.reason = target->temp.reason;
target->current.reason_effect = target->temp.reason_effect;
target->current.reason_player = target->temp.reason_player;
Expand Down Expand Up @@ -3830,7 +3830,7 @@ int32_t field::release(uint16_t step, group * targets, effect * reason_effect, u
if(cv.size() > 1)
std::sort(cv.begin(), cv.end(), card::card_operation_sort);
for (auto& pcard : cv) {
if(!(pcard->current.location & (LOCATION_ONFIELD | LOCATION_HAND))) {
if(!(pcard->current.location & (LOCATION_ONFIELD | LOCATION_HAND | LOCATION_DECK))) {
pcard->current.reason = pcard->temp.reason;
pcard->current.reason_effect = pcard->temp.reason_effect;
pcard->current.reason_player = pcard->temp.reason_player;
Expand Down

0 comments on commit 36cab1e

Please sign in to comment.