Commit 5694c8b5 authored by DailyShana's avatar DailyShana

set STATUS_DESTROY_CONFIRMED before replacing battle destroy

parent 0b4aef4a
......@@ -3431,6 +3431,7 @@ int32 field::process_battle_command(uint16 step) {
dest &= 0xffff;
}
core.attacker->operation_param = (POS_FACEUP << 24) + (((uint32)core.attacker->owner) << 16) + (dest << 8) + seq;
core.attacker->set_status(STATUS_DESTROY_CONFIRMED, TRUE);
}
if(core.attack_target && core.attack_target->is_status(STATUS_BATTLE_RESULT)
&& core.attack_target->current.location == LOCATION_MZONE && core.attack_target->fieldid_r == core.pre_field[1]) {
......@@ -3451,6 +3452,7 @@ int32 field::process_battle_command(uint16 step) {
dest &= 0xffff;
}
core.attack_target->operation_param = (POS_FACEUP << 24) + (((uint32)core.attack_target->owner) << 16) + (dest << 8) + seq;
core.attack_target->set_status(STATUS_DESTROY_CONFIRMED, TRUE);
}
core.attacker->set_status(STATUS_BATTLE_RESULT, FALSE);
if(core.attack_target)
......
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