diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-25 02:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-25 02:30:47 +0300 |
commit | c9795055ee1b6079ef9b0c0e3faf4bb79704bd98 (patch) | |
tree | 147357b76a80705cf0af7bc1ec69cf417ef94812 /src/spellmanager.cpp | |
parent | 1e5a50f6c67cd20967e139320a6c00f54e15dfe2 (diff) | |
download | mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.gz mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.bz2 mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.xz mv-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.zip |
Add into player attributes prefix PLAYER_.
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 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 |