summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp3
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)