summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index ca164717b..e5d8166ce 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -154,7 +154,7 @@ void SpellManager::invoke(const int spellId) const
{
invokeSpell(spell);
}
- if ((target && (target->getType() != ActorType::MONSTER
+ if ((target && (target->getType() != ActorType::Monster
|| spell->getCommandType() == TEXT_COMMAND_TEXT))
&& (spell->getTargetType() == ALLOWTARGET
|| spell->getTargetType() == NEEDTARGET))