diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-30 17:17:54 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-30 17:17:54 +0000 |
commit | f2fc19261875e74de1517e99a487933c1fa62a4a (patch) | |
tree | 755b8a1daea85d30325f3edd73907da46435edd2 /crawl-ref/source/randart.cc | |
parent | 19df35fe6834565230b85def097ae8dbb81a59ba (diff) | |
download | crawl-ref-f2fc19261875e74de1517e99a487933c1fa62a4a.tar.gz crawl-ref-f2fc19261875e74de1517e99a487933c1fa62a4a.zip |
Fix _god_fits_artefact() to properly check for good gods' not gifting
cursed artefacts, as opposed to all gods' not gifting them.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4780 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r-- | crawl-ref/source/randart.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 40c406ee75..221962c662 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -52,9 +52,9 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item) if (is_evil_god(which_god) && brand == SPWPN_HOLY_WRATH) return (false); - else if (is_good_god(which_god) && (brand == SPWPN_DRAINING + else if (is_good_god(which_god) && ((brand == SPWPN_DRAINING || brand == SPWPN_PAIN || brand == SPWPN_VAMPIRICISM) - || randart_wpn_property( item, RAP_CURSED ) != 0) + || randart_wpn_property(item, RAP_CURSED) != 0)) { return (false); } |