summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 16:13:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 16:13:04 +0000
commit41974509cd5e7ac1d94e941307b2becfad722eca (patch)
tree3f30af091cd8e60d92a8bd53f9b4b2b4de897ca1
parent6ab4b3ada4036c926be475796796f48c9c5da949 (diff)
downloadcrawl-ref-41974509cd5e7ac1d94e941307b2becfad722eca.tar.gz
crawl-ref-41974509cd5e7ac1d94e941307b2becfad722eca.zip
Make eyes of draining only use their draining ability on the player,
since it only works on the player anyway. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8172 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/monstuff.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 8541133d0a..45ccfafd70 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -4851,7 +4851,8 @@ static void _handle_nearby_ability(monsters *monster)
break;
case MONS_EYE_OF_DRAINING:
- if (coinflip() && !mons_friendly(monster)
+ if (coinflip()
+ && foe->atype() == ACT_PLAYER
&& !mons_is_wandering(monster)
&& !mons_is_fleeing(monster)
&& !mons_is_pacified(monster)