Commit 5e95a151 authored by DailyShana's avatar DailyShana

fix rollback

parent db298072
...@@ -3149,7 +3149,8 @@ int32 field::process_battle_command(uint16 step) { ...@@ -3149,7 +3149,8 @@ int32 field::process_battle_command(uint16 step) {
} }
} }
} }
if(!core.attack_target && !core.attacker->operation_param) if(!core.attack_target && !core.attacker->operation_param
|| std::find(core.select_cards.begin(),core.select_cards.end(), core.attack_target) == core.select_cards.end())
rollback = true; rollback = true;
if(!rollback) { if(!rollback) {
core.attacker->announce_count++; core.attacker->announce_count++;
......
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