diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-18 06:38:44 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-18 06:38:44 +0000 |
commit | 4640373c3b2cae6f036604c18ddb137bce989949 (patch) | |
tree | 7354dea577a36f7cb41e723923e8963a1c8adf7b /crawl-ref/source | |
parent | c764cf74d3da0319bb8711d4c974a786c5afab9a (diff) | |
download | crawl-ref-4640373c3b2cae6f036604c18ddb137bce989949.tar.gz crawl-ref-4640373c3b2cae6f036604c18ddb137bce989949.zip |
Fix monster attitude comparison for ball lightnings.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5939 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index fd23087706..95a53a14ad 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -3911,7 +3911,7 @@ static bool _handle_special_ability(monsters *monster, bolt & beem) if (distance( monster->x, monster->y, targ->x, targ->y ) >= 5) continue; - if (monster->attitude == targ->attitude) + if (mons_atts_aligned(monster->attitude, targ->attitude)) continue; // Faking LOS by checking the neighbouring square. |