Merge pull request #245 from badgerman/feature/bug-1950-flee-and-guard

Bug 1950: fleeing units can guard the same turn.
This commit is contained in:
Enno Rehling 2015-07-02 18:12:03 +02:00
commit 13ed70f2fd
1 changed files with 1 additions and 1 deletions

View File

@ -2675,7 +2675,7 @@ enum { E_GUARD_OK, E_GUARD_UNARMED, E_GUARD_NEWBIE, E_GUARD_FLEEING };
static int can_start_guarding(const unit * u)
{
if (u->status >= ST_FLEE)
if (u->status >= ST_FLEE || fval(u, UFL_FLEEING))
return E_GUARD_FLEEING;
if (fval(u_race(u), RCF_UNARMEDGUARD))
return E_GUARD_OK;