diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-11 11:08:59 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-11 11:08:59 +0100 |
commit | 54c2ea1ac1ceb7926f2d489e1cbcc7e9a28f990a (patch) | |
tree | 493d2b959580683b31e88af7d8a0afb34d23be00 /crawl-ref/source/monster.cc | |
parent | b87399f832fec14917a0155bacb13b026efd9c2a (diff) | |
download | crawl-ref-54c2ea1ac1ceb7926f2d489e1cbcc7e9a28f990a.tar.gz crawl-ref-54c2ea1ac1ceb7926f2d489e1cbcc7e9a28f990a.zip |
Use AT_ not AF_ for WEAP_ONLY, so statues won't use bows like a cudgel.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 19872b3b9a..889500bc25 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -489,7 +489,7 @@ static int _mons_offhand_weapon_index(const monsters *m) item_def *monsters::weapon(int which_attack) { const mon_attack_def attk = mons_attack_spec(this, which_attack); - if (attk.type != AT_HIT) + if (attk.type != AT_HIT && attk.type != AT_WEAP_ONLY) return (NULL); // Even/odd attacks use main/offhand weapon. |