diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-21 15:24:01 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-21 15:24:01 +0100 |
commit | 6f877a7c7aa60250b21f85ddcee17c237126b3cc (patch) | |
tree | 272b644dc2518e65707373c341c456f84a9d75a4 /crawl-ref/source/items.cc | |
parent | fc6b7c844ae2f1f1a41d088fe45f8a1a8a5db77f (diff) | |
download | crawl-ref-6f877a7c7aa60250b21f85ddcee17c237126b3cc.tar.gz crawl-ref-6f877a7c7aa60250b21f85ddcee17c237126b3cc.zip |
Don't corrode spectral weapons (again)
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 65a9aec115..6bbfbeeb2d 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -4166,6 +4166,13 @@ void corrode_item(item_def &item, actor *holder) if (item.base_type != OBJ_ARMOUR && item.base_type != OBJ_WEAPONS) return; + // Don't corrode spectral weapons. + if (holder && holder->is_monster() + && mons_is_avatar(holder->as_monster()->type)) + { + return; + } + // Anti-corrosion items protect against 90% of corrosion. if (holder && holder->res_corr() && !one_chance_in(10)) { |