summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/effects.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 1d6490e079..5031bdfb17 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1166,9 +1166,8 @@ bool acquirement(unsigned char force_class, int agent)
// MT - Check: god-gifted weapons and armor shouldn't kill you.
// Except Xom.
- if (agent == GOD_TROG || agent == GOD_OKAWARU)
- break;
- else
+ if ((agent == GOD_TROG || agent == GOD_OKAWARU)
+ && is_random_artefact(mitm[thing_created]))
{
randart_wpn_properties( mitm[thing_created], proprt );
@@ -1181,10 +1180,10 @@ bool acquirement(unsigned char force_class, int agent)
// try again
destroy_item(thing_created);
thing_created = NON_ITEM;
+ continue;
}
- else
- break;
}
+ break;
}
if (thing_created == NON_ITEM)