summaryrefslogtreecommitdiff
path: root/src/gods.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gods.cc')
-rw-r--r--src/gods.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gods.cc b/src/gods.cc
index be877905..abb10c13 100644
--- a/src/gods.cc
+++ b/src/gods.cc
@@ -93,7 +93,7 @@ void follow_god(int god, bool_ silent)
p_ptr->pgod = god;
/* Melkor offer Udun magic */
- GOD(GOD_MELKOR)
+ if (p_ptr->pgod == GOD_MELKOR)
{
s_info[SKILL_UDUN].hidden = FALSE;
if (!silent) msg_print("You feel the dark powers of Melkor in you. You can now use the Udun skill.");
@@ -203,3 +203,8 @@ int find_god(cptr name)
}
return -1;
}
+
+bool praying_to(int god)
+{
+ return (p_ptr->pgod == god) && p_ptr->praying;
+}