diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-18 09:56:54 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-18 09:56:54 +0000 |
commit | 1c59fb1479a724c0969c54e0365856b1cff77c00 (patch) | |
tree | f1a28fcfd3aa8a44f7a15916b287272759239594 /crawl-ref/source/mon-util.cc | |
parent | 30335e8ff7bfd82cdc2dfea9721d3262bbc5d81d (diff) | |
download | crawl-ref-1c59fb1479a724c0969c54e0365856b1cff77c00.tar.gz crawl-ref-1c59fb1479a724c0969c54e0365856b1cff77c00.zip |
Don't treat electric eels as safe just because they're aquatic.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10711 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 14721142ff..9da8ae5473 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -3324,6 +3324,14 @@ bool mons_has_ranged_spell( const monsters *mon, bool attack_only, return (false); } +bool mons_has_ranged_ability( const monsters *mon) +{ + if (mon->type == MONS_ELECTRIC_EEL || mon->type == MONS_LAVA_SNAKE) + return (true); + + return (false); +} + bool mons_has_ranged_attack( const monsters *mon ) { // Ugh. |