mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 10:20:30 +00:00
Fix attacker still getting resting bonus...
...after using attack with movement_used=0
This commit is contained in:
parent
ab13f02de0
commit
fbf7845e83
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user