summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-01 00:43:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-01 00:43:10 +0300
commit9e755afa031f39172292aa82d3df42c1eaa01b03 (patch)
tree396cf53255eba81d80cfe9a0f6c04022c72e19a6 /src/actorspritemanager.cpp
parent50f96cb7f1069aee951a4ffabd17d2e9753b0987 (diff)
downloadplus-9e755afa031f39172292aa82d3df42c1eaa01b03.tar.gz
plus-9e755afa031f39172292aa82d3df42c1eaa01b03.tar.bz2
plus-9e755afa031f39172292aa82d3df42c1eaa01b03.tar.xz
plus-9e755afa031f39172292aa82d3df42c1eaa01b03.zip
Fix magic skill level checks.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index ce54316fd..f87f84a50 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -1144,8 +1144,8 @@ void ActorSpriteManager::heal(const Being *const target) const
}
}
// magic levels < 2
- else if (PlayerInfo::getStatEffective(340) < 2
- || PlayerInfo::getStatEffective(341) < 2)
+ else if (PlayerInfo::getSkillLevel(340) < 2
+ || PlayerInfo::getSkillLevel(341) < 2)
{
if (PlayerInfo::getAttribute(PlayerInfo::MP) >= 6)
{