diff options
-rw-r--r-- | crawl-ref/source/mgrow.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mgrow.cc b/crawl-ref/source/mgrow.cc index e2a2548c8a..eb79932e05 100644 --- a/crawl-ref/source/mgrow.cc +++ b/crawl-ref/source/mgrow.cc @@ -210,6 +210,10 @@ bool monsters::gain_exp(int exp) if (holiness() != MH_NATURAL) return (false); + // Only monsters that you can gain XP from can level-up. + if (mons_class_flag(type, M_NO_EXP_GAIN)) + return (false); + // Avoid wrap-around. if (experience + exp < experience) return (false); |