Commit c77efc27 authored by DailyShana's avatar DailyShana

fix

Fluorohydride/ygopro-scripts#182
parent e03c560e
...@@ -2670,6 +2670,13 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3 ...@@ -2670,6 +2670,13 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
} }
} }
} }
for (auto cit = indestructable_set.begin(); cit != indestructable_set.end(); ++cit) {
(*cit)->current.reason = (*cit)->temp.reason;
(*cit)->current.reason_effect = (*cit)->temp.reason_effect;
(*cit)->current.reason_player = (*cit)->temp.reason_player;
(*cit)->set_status(STATUS_DESTROY_CONFIRMED, FALSE);
targets->container.erase(*cit);
}
for (auto cit = extra.begin(); cit != extra.end(); ++cit) { for (auto cit = extra.begin(); cit != extra.end(); ++cit) {
card* rep = *cit; card* rep = *cit;
if(targets->container.count(rep) == 0) { if(targets->container.count(rep) == 0) {
...@@ -2683,13 +2690,6 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3 ...@@ -2683,13 +2690,6 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
targets->container.insert(rep); targets->container.insert(rep);
} }
} }
for (auto cit = indestructable_set.begin(); cit != indestructable_set.end(); ++cit) {
(*cit)->current.reason = (*cit)->temp.reason;
(*cit)->current.reason_effect = (*cit)->temp.reason_effect;
(*cit)->current.reason_player = (*cit)->temp.reason_player;
(*cit)->set_status(STATUS_DESTROY_CONFIRMED, FALSE);
targets->container.erase(*cit);
}
for (auto eit = indestructable_effect_set.begin(); eit != indestructable_effect_set.end(); ++eit) { for (auto eit = indestructable_effect_set.begin(); eit != indestructable_effect_set.end(); ++eit) {
pduel->write_buffer8(MSG_HINT); pduel->write_buffer8(MSG_HINT);
pduel->write_buffer8(HINT_CARD); pduel->write_buffer8(HINT_CARD);
......
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