Commit f58bba9b authored by DailyShana's avatar DailyShana

fix Duel.GetControl

if the target is self destroyed, it should not count in the return value
parent 332aea23
......@@ -900,6 +900,7 @@ int32 field::get_control(uint16 step, effect* reason_effect, uint8 reason_player
}
case 3: {
if(targets->it == targets->container.end()) {
adjust_instant();
core.units.begin()->step = 4;
return FALSE;
}
......@@ -918,7 +919,6 @@ int32 field::get_control(uint16 step, effect* reason_effect, uint8 reason_player
return FALSE;
}
case 5: {
adjust_instant();
for(auto cit = targets->container.begin(); cit != targets->container.end(); ) {
card* pcard = *cit++;
if(!(pcard->current.location & LOCATION_ONFIELD)) {
......
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