diff options
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index a6b4f48ac0..00a3fde7f6 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -620,6 +620,9 @@ static bool _can_pacify_monster(const monsters *mon, const int healed) if (mons_intel(mon->type) <= I_PLANT) // no self-awareness return false; + if (mons_is_stationary(mon)) // not able to leave the level + return false; + if (mons_is_sleeping(mon)) // not aware of what is happening return false; @@ -637,6 +640,8 @@ static bool _can_pacify_monster(const monsters *mon, const int healed) divisor++; else if (holiness == MH_DEMONIC) divisor += 2; + else if (holiness != MH_NATURAL) + return false; const int random_factor = random2(you.skills[SK_INVOCATIONS] * healed / divisor); |