summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua_bind.c9
-rw-r--r--src/modules.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c
index 34a89613..ab1a19c8 100644
--- a/src/lua_bind.c
+++ b/src/lua_bind.c
@@ -548,7 +548,14 @@ void timer_aggravate_evil_enable()
void timer_aggravate_evil_callback()
{
- dispel_evil(0);
+ if ((p_ptr->prace == RACE_MAIA) &&
+ (!player_has_corruption(CORRUPT_BALROG_AURA)) &&
+ (!player_has_corruption(CORRUPT_BALROG_WINGS)) &&
+ (!player_has_corruption(CORRUPT_BALROG_STRENGTH)) &&
+ (!player_has_corruption(CORRUPT_BALROG_FORM)))
+ {
+ dispel_evil(0);
+ }
}
cptr get_spell_info(s32b s)
diff --git a/src/modules.c b/src/modules.c
index 01f1be00..c4bea6eb 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -1152,6 +1152,8 @@ void init_hooks_module()
case MODULE_THEME:
{
+ timer_aggravate_evil_enable();
+
add_hook_new(HOOK_PLAYER_LEVEL,
auto_stat_gain_hook,
"auto_stat_gain",