From c9795055ee1b6079ef9b0c0e3faf4bb79704bd98 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jul 2016 02:30:47 +0300 Subject: Add into player attributes prefix PLAYER_. --- 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 e894ff6df..8a87fe521 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -143,7 +143,7 @@ void SpellManager::invoke(const int spellId) const >= CAST_S32(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(CAST_S32( spell->getSchool())) >= CAST_S32(spell->getSchoolLvl()) - && PlayerInfo::getAttribute(Attributes::MP) + && PlayerInfo::getAttribute(Attributes::PLAYER_MP) >= CAST_S32(spell->getMana())) ) #endif -- cgit v1.2.3-60-g2f50