soon as they leave it, since they're being forced out rather than actually afraid. Also give a "stops retreating" message for them instead of the "regaining courage" one.
Remove faulty logic that was causing monsters to not notice the player as soon as they stopped fleeing Sanctuary.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6320 c06c8d41-db1a-0410-9941-cceddc491573
A2SAU7YL5ZS4TODRUTKLI4W4RZOMZSSLBEEXOKPKQKP5SEWU7QOQC
OMTU7OMVWDVAGJCQGQJDZ3YU252T6IM2LPS2ZMPWB7MIXCJK62AQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
PQ3SLWFD5CF33ZHBG2V7YJEKAL6HTSDYOV25OKUTBCW2QF7TL4AAC
DK362IHKSDADMUPD35NOTKM4WESQM37KG2PNOJRV2FGELDWULYPQC
SFWCESFCUEVKJ6ZQQX3Y5YTIQD5BC6MCVSLVZFRGRTU46BFLKKWAC
CGYTZT5QWIEGYKUOLOK7MFXSLJKLYRZONER5ZCDZO5XYWSLG475QC
X5WLJCJVW55SXZVP7IKP7ADCJIGNKN4PKAXFECVR6TNK7XSMZR7QC
ARNDCQD3NXQRD5CZFTBQOMID5RPPRRIK647T36FLGHMUN62MF7WAC
if (random2(5) > 2)
// Nonliving and berserking monsters always stop imediately,
// since they're only being forced out rather than actually scared.
if (monster->holiness() == MH_NONLIVING
|| monster->has_ench(ENCH_BERSERK)
|| random2(5) > 2)
{
snprintf( info, INFO_SIZE, " seems to regain %s courage.",
mons_pronoun(static_cast<monster_type>(this->type),
PRONOUN_NOCAP_POSSESSIVE));
if (holiness() == MH_NONLIVING || has_ench(ENCH_BERSERK))
{
// This should only happen because of fleeing Sanctuary
strcpy( info, " stops retreating.");
}
else
{
snprintf( info, INFO_SIZE, " seems to regain %s courage.",
mons_pronoun(static_cast<monster_type>(this->type),
PRONOUN_NOCAP_POSSESSIVE));
}