summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
commitea0b61e18f36f28806940b00a2cddaef912c3340 (patch)
tree616205f44832d4ced4fc0b50b650eedb0fbf435c /src/spellmanager.cpp
parent814e88e5ca69bc54837be27429dbf42dd41f7ac6 (diff)
downloadmanaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.gz
manaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.bz2
manaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.xz
manaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.zip
Move actor type into separate file.
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 80927c693..8af99db14 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -152,7 +152,7 @@ void SpellManager::invoke(const int spellId) const
{
invokeSpell(spell);
}
- if ((target && (target->getType() != Being::MONSTER
+ if ((target && (target->getType() != ActorType::MONSTER
|| spell->getCommandType() == TEXT_COMMAND_TEXT))
&& (spell->getTargetType() == ALLOWTARGET
|| spell->getTargetType() == NEEDTARGET))