Fix attacker still getting resting bonus...

...after using attack with movement_used=0
This commit is contained in:
Ali El Gariani 2010-06-20 10:14:53 +00:00
parent ab13f02de0
commit fbf7845e83

View File

@ -1523,6 +1523,7 @@ void attack::perform()
a_.get_unit().set_movement(a_.get_unit().movement_left() -
a_.get_unit().attacks()[a_.weapon_].movement_used());
a_.get_unit().set_state(unit::STATE_NOT_MOVED,false);
a_.get_unit().set_resting(false);
d_.get_unit().set_resting(false);
// If the attacker was invisible, she isn't anymore!