From 87c59212f8590a8dd72fac3e320fcb2ada781355 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 May 2014 19:28:57 +0300 Subject: Move player attributes into separate file. --- src/spellmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/spellmanager.cpp') 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(spell->getBaseLvl()) && PlayerInfo::getSkillLevel(static_cast( spell->getSchool())) >= static_cast(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) -- cgit v1.2.3-60-g2f50