From fbf7845e83a8f2d21957291470d62158253d0c86 Mon Sep 17 00:00:00 2001 From: Ali El Gariani Date: Sun, 20 Jun 2010 10:14:53 +0000 Subject: [PATCH] Fix attacker still getting resting bonus... ...after using attack with movement_used=0 --- src/actions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/actions.cpp b/src/actions.cpp index c1542a16938..0722b9ff3b9 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -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!