summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 01:30:46 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 01:32:02 +0300
commit3da7fa61442364be6713359690a35f89aa8e613a (patch)
tree48a941dbbb0234b897478aa50518112407d08e5b /src/actorspritemanager.cpp
parent470aaad15a0f9a08dd12ab34c8602cd93fc57b76 (diff)
downloadplus-3da7fa61442364be6713359690a35f89aa8e613a.tar.gz
plus-3da7fa61442364be6713359690a35f89aa8e613a.tar.bz2
plus-3da7fa61442364be6713359690a35f89aa8e613a.tar.xz
plus-3da7fa61442364be6713359690a35f89aa8e613a.zip
Add support for show quest variables in skills window (evol only)
This allow use pseudo skills controlled by quest variables.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 4a36d6e1d..899f51088 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -1144,10 +1144,8 @@ void ActorSpriteManager::heal(const Being *const target) const
}
}
// magic levels < 2
- else if (PlayerInfo::getStatEffective(
- static_cast<PlayerInfo::Attribute>(340)) < 2
- || PlayerInfo::getStatEffective(
- static_cast<PlayerInfo::Attribute>(341)) < 2)
+ else if (PlayerInfo::getStatEffective(340) < 2
+ || PlayerInfo::getStatEffective(341) < 2)
{
if (PlayerInfo::getAttribute(PlayerInfo::MP) >= 6)
{