diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:34:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:34:24 +0300 |
commit | 8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0 (patch) | |
tree | c55088930bdf1ff0b7fe1f4d6f9219ca6c55e9c9 /src/spellmanager.cpp | |
parent | 4eaedf092bc504fae492827b1a89e7bbaac20263 (diff) | |
download | mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.gz mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.bz2 mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.xz mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.zip |
Remove getter for playerHandler.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index e5d8166ce..b569ba7eb 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -142,7 +142,7 @@ void SpellManager::invoke(const int spellId) const return; if (spell->getCommandType() == TEXT_COMMAND_TEXT - || (Net::getPlayerHandler()->canUseMagic() + || (playerHandler->canUseMagic() && PlayerInfo::getSkillLevel(SKILL_MAGIC) >= static_cast<signed>(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(static_cast<int>( |