diff options
author | Neil Moore <neil@s-z.org> | 2014-05-13 17:39:33 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-13 17:39:33 -0400 |
commit | 8e1b8955197c90e724290fb66c5842639f659b8f (patch) | |
tree | 784147b5b6c7f3e2350914a433f874f7bc4c800b /crawl-ref/source/invent.cc | |
parent | 9f3982ee91dd7a12f0e20ce477a39a9259ed11b7 (diff) | |
download | crawl-ref-8e1b8955197c90e724290fb66c5842639f659b8f.tar.gz crawl-ref-8e1b8955197c90e724290fb66c5842639f659b8f.zip |
Don't let Ashenzarites waste ?EW on cursed unenchantables.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index e3df65d0e5..934b4a1545 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -1249,7 +1249,8 @@ static bool _item_class_selected(const item_def &i, int selector) { if (!is_weapon(i)) return false; - if (i.cursed()) + // Ashenzari would just preserve the curse. + if (i.cursed() && !you_worship(GOD_ASHENZARI)) return true; if (itype != OBJ_WEAPONS || is_artefact(i)) return false; |