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:
Rusty Russell 2006-06-04 15:18:45 +00:00
parent aff98d4736
commit f1f8d2fd60

View file

@ -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!