forked from github/server
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:
commit
13ed70f2fd
|
@ -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)
|
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;
|
return E_GUARD_FLEEING;
|
||||||
if (fval(u_race(u), RCF_UNARMEDGUARD))
|
if (fval(u_race(u), RCF_UNARMEDGUARD))
|
||||||
return E_GUARD_OK;
|
return E_GUARD_OK;
|
||||||
|
|
Loading…
Reference in New Issue