diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-15 18:37:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-15 18:37:00 +0300 |
commit | 65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635 (patch) | |
tree | 493d6441dd152419908d28178c26112a4639e89f /src/actorspritemanager.cpp | |
parent | e1e411459e9c9aae819eee474d48d0cc20f6ca07 (diff) | |
download | manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.gz manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.bz2 manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.xz manaplus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.zip |
Fix code style.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp index a85d2cd49..8cdede262 100644 --- a/src/actorspritemanager.cpp +++ b/src/actorspritemanager.cpp @@ -1126,9 +1126,9 @@ void ActorSpriteManager::heal(Being* target) // self if (target && player_node->getName() == target->getName()) { - if (PlayerInfo::getAttribute(MP) >= 6 - && PlayerInfo::getAttribute(HP) - != PlayerInfo::getAttribute(MAX_HP)) + if (PlayerInfo::getAttribute(PlayerInfo::MP) >= 6 + && PlayerInfo::getAttribute(PlayerInfo::HP) + != PlayerInfo::getAttribute(PlayerInfo::MAX_HP)) { if (!Client::limitPackets(PACKET_CHAT)) return; @@ -1139,7 +1139,7 @@ void ActorSpriteManager::heal(Being* target) else if (PlayerInfo::getStatEffective(340) < 2 || PlayerInfo::getStatEffective(341) < 2) { - if (PlayerInfo::getAttribute(MP) >= 6) + if (PlayerInfo::getAttribute(PlayerInfo::MP) >= 6) { if (target && target->getType() != Being::MONSTER) { @@ -1148,8 +1148,8 @@ void ActorSpriteManager::heal(Being* target) chatWindow->localChatInput(mSpellHeal1 + " " + target->getName()); } - else if (PlayerInfo::getAttribute(HP) - != PlayerInfo::getAttribute(MAX_HP)) + else if (PlayerInfo::getAttribute(PlayerInfo::HP) + != PlayerInfo::getAttribute(PlayerInfo::MAX_HP)) { if (!Client::limitPackets(PACKET_CHAT)) return; @@ -1161,7 +1161,7 @@ void ActorSpriteManager::heal(Being* target) else { // mp > 10 and target not monster - if (PlayerInfo::getAttribute(MP) >= 10 && target + if (PlayerInfo::getAttribute(PlayerInfo::MP) >= 10 && target && target->getType() != Being::MONSTER) { // target not enemy @@ -1183,9 +1183,9 @@ void ActorSpriteManager::heal(Being* target) } // heal self if selected monster or selection empty else if ((!target || target->getType() == Being::MONSTER) - && PlayerInfo::getAttribute(MP) >= 6 - && PlayerInfo::getAttribute(HP) - != PlayerInfo::getAttribute(MAX_HP)) + && PlayerInfo::getAttribute(PlayerInfo::MP) >= 6 + && PlayerInfo::getAttribute(PlayerInfo::HP) + != PlayerInfo::getAttribute(PlayerInfo::MAX_HP)) { if (!Client::limitPackets(PACKET_CHAT)) return; |