summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-21 13:37:02 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-21 13:37:02 +0200
commit60ff0466730fdccea279e5320b3991788cff125f (patch)
treed588d1134ef3534fcd5abd1702c48b91c9675e94 /src
parent073ad3584fbf781ce10bef61ad4ff38850282f47 (diff)
Apply random_artifact_resistance() to debug-created artifacts too
Diffstat (limited to 'src')
-rw-r--r--src/wizard2.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wizard2.cc b/src/wizard2.cc
index 46850be3..a4f697bd 100644
--- a/src/wizard2.cc
+++ b/src/wizard2.cc
@@ -195,6 +195,9 @@ static void wiz_create_named_art()
apply_magic(q_ptr, -1, TRUE, TRUE, TRUE);
+ /* Apply any random resistances/powers */
+ random_artifact_resistance(q_ptr);
+
/* Identify it fully */
object_aware(q_ptr);
object_known(q_ptr);