summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 0c2b554d62..cd5901145f 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1997,8 +1997,12 @@ static std::string _describe_mons_enchantment(const monsters &mons,
{
// Suppress silly-looking combinations, even if they're
// internally valid.
- if (paralysed && (ench.ench == ENCH_SLOW || ench.ench == ENCH_HASTE))
+ if (paralysed && (ench.ench == ENCH_SLOW || ench.ench == ENCH_HASTE
+ || ench.ench == ENCH_PETRIFIED
+ || ench.ench == ENCH_PETRIFYING))
+ {
return "";
+ }
if ((ench.ench == ENCH_HASTE || ench.ench == ENCH_BATTLE_FRENZY)
&& mons.has_ench(ENCH_BERSERK))
@@ -2006,6 +2010,9 @@ static std::string _describe_mons_enchantment(const monsters &mons,
return "";
}
+ if (ench.ench == ENCH_PETRIFIED && mons.has_ench(ENCH_PETRIFYING))
+ return "";
+
switch (ench.ench)
{
case ENCH_POISON:
@@ -2034,6 +2041,10 @@ static std::string _describe_mons_enchantment(const monsters &mons,
return "covered in liquid flames";
case ENCH_HELD:
return "entangled in a net";
+ case ENCH_PETRIFIED:
+ return "petrified";
+ case ENCH_PETRIFYING:
+ return "slowly petrifying";
default:
return "";
}