forked from github/server
Bug 1950: fleeing units can guard the same turn.
checking for UFL_FLEEING in can_start_guarding should make that impossible now. https://bugs.eressea.de/view.php?id=1950
This commit is contained in:
parent
f054ea114b
commit
a2376290d8
|
@ -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