summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 985faa83..b9a24509 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -127,6 +127,11 @@ void Being::setSubtype(Uint16 subtype)
}
}
+bool Being::isTargetSelection() const
+{
+ return mInfo->isTargetSelection();
+}
+
ActorSprite::TargetCursorSize Being::getTargetCursorSize() const
{
return mInfo->getTargetCursorSize();
@@ -383,7 +388,7 @@ void Being::takeDamage(Being *attacker, int amount,
}
else if (attacker && attacker->getType() == MONSTER)
{
- const Attack &attack = attacker->getInfo()->getAttack(attackId);
+ const Attack &attack = attacker->getInfo().getAttack(attackId);
if (type != CRITICAL)
hitEffectId = attack.mHitEffectId;