diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-11 19:28:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-11 19:28:57 +0300 |
commit | 87c59212f8590a8dd72fac3e320fcb2ada781355 (patch) | |
tree | 198d627c44f1164140659827a5c782d30bec375b /src/spellmanager.cpp | |
parent | 02e91411eb9961e95f856bd717d6ca0d8ec0e435 (diff) | |
download | mv-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.gz mv-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.bz2 mv-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.xz mv-87c59212f8590a8dd72fac3e320fcb2ada781355.zip |
Move player attributes into separate file.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index aaf7ad302..80927c693 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -24,6 +24,7 @@ #include "configuration.h" +#include "being/attributes.h" #include "being/localplayer.h" #include "being/playerinfo.h" @@ -144,7 +145,7 @@ void SpellManager::invoke(const int spellId) const >= static_cast<signed>(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(static_cast<int>( spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl()) - && PlayerInfo::getAttribute(PlayerInfo::MP) >= spell->getMana())) + && PlayerInfo::getAttribute(Attributes::MP) >= spell->getMana())) { const Being *const target = player_node->getTarget(); if (spell->getTargetType() == NOTARGET) |