summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/skills.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/skills.c b/src/skills.c
index 9890e96d..253eff3f 100644
--- a/src/skills.c
+++ b/src/skills.c
@@ -366,6 +366,14 @@ void recalc_skills(bool_ init)
msg_format("You have gained %d new thaumaturgy spells.", thaum_gain);
}
+ /* Antimagic means you don't believe in gods. */
+ if ((p_ptr->pgod != GOD_NONE) &&
+ (s_info[SKILL_ANTIMAGIC].value > 0))
+ {
+ msg_print("You no longer believe.");
+ abandon_god(GOD_ALL);
+ }
+
process_hooks(HOOK_RECALC_SKILLS, "()");
/* Update stuffs */