summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attitude-change.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/attitude-change.cc')
-rw-r--r--crawl-ref/source/attitude-change.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/attitude-change.cc b/crawl-ref/source/attitude-change.cc
index 17ea662244..ae4777cba5 100644
--- a/crawl-ref/source/attitude-change.cc
+++ b/crawl-ref/source/attitude-change.cc
@@ -271,7 +271,7 @@ bool chaotic_beings_attitude_change()
return (apply_to_all_dungeons(_chaotic_beings_on_level_attitude_change));
}
-static bool _magic_users_on_level_attitude_change()
+static bool _spellcasters_on_level_attitude_change()
{
bool success = false;
@@ -279,10 +279,10 @@ static bool _magic_users_on_level_attitude_change()
{
monsters *monster = &menv[i];
if (monster->alive()
- && monster->is_magic_user())
+ && monster->is_actual_spellcaster())
{
#ifdef DEBUG_DIAGNOSTICS
- mprf(MSGCH_DIAGNOSTICS, "Magic user attitude changing: %s on level %d, branch %d",
+ mprf(MSGCH_DIAGNOSTICS, "Spellcaster attitude changing: %s on level %d, branch %d",
monster->name(DESC_PLAIN).c_str(),
static_cast<int>(you.your_level),
static_cast<int>(you.where_are_you));
@@ -305,9 +305,9 @@ static bool _magic_users_on_level_attitude_change()
return (success);
}
-bool magic_users_attitude_change()
+bool spellcasters_attitude_change()
{
- return (apply_to_all_dungeons(_magic_users_on_level_attitude_change));
+ return (apply_to_all_dungeons(_spellcasters_on_level_attitude_change));
}
// Make summoned (temporary) god gifts disappear on penance or when