summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 23:58:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 23:58:39 +0300
commit0a39e956218ca15bf78803f89141c7c9dfcec0d9 (patch)
treeadfc0fcd42792ddad6b3cb8843d6fe0c22170580 /src/spellmanager.cpp
parent69022cd939e572feadaadf1041ae7dadad782ed6 (diff)
downloadmanaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.gz
manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.bz2
manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.xz
manaplus-0a39e956218ca15bf78803f89141c7c9dfcec0d9.zip
Change format in ActorType enum.
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))