From 8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 11:34:24 +0300 Subject: Remove getter for playerHandler. --- src/spellmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spellmanager.cpp') 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(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(static_cast( -- cgit v1.2.3-70-g09d2