Set resting_ flag to false on attacker during attack as well.
Altering movement should be enough (unit::end_turn should set resting_ = false), but somehow when AI attacks without moving, it thinks it deserves healing bonus. This is wrong, and worse, other players in MP don't give healing bonus, giving OOS. Thanks to other devs for arduous tracking down...
This commit is contained in:
parent
aff98d4736
commit
f1f8d2fd60
1 changed files with 1 additions and 0 deletions
|
@ -654,6 +654,7 @@ void attack(display& gui, const gamemap& map,
|
|||
|
||||
a->second.set_attacks(a->second.attacks_left()-1);
|
||||
a->second.set_movement(a->second.movement_left()-a->second.attacks()[attack_with].movement_used());
|
||||
a->second.set_resting(false);
|
||||
d->second.set_resting(false);
|
||||
|
||||
//if the attacker was invisible, she isn't anymore!
|
||||
|
|
Loading…
Add table
Reference in a new issue