Commit f8d23372 authored by DailyShana's avatar DailyShana

remove REASON_TEMPORARY after returning to field

otherwise the triggering player may be wrong when activating trigger effect on field
parent a1a33d15
...@@ -4346,6 +4346,8 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret, ...@@ -4346,6 +4346,8 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
if(!(target->current.location & LOCATION_ONFIELD)) if(!(target->current.location & LOCATION_ONFIELD))
target->clear_relate_effect(); target->clear_relate_effect();
} }
if(ret == 1)
target->current.reason &= ~REASON_TEMPORARY;
if(ret == 0 && location != target->current.location if(ret == 0 && location != target->current.location
|| ret == 1 && target->turnid != infos.turn_id) { || ret == 1 && target->turnid != infos.turn_id) {
target->set_status(STATUS_SUMMON_TURN, FALSE); target->set_status(STATUS_SUMMON_TURN, FALSE);
......
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