aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 215a1644134..7b229609c30 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -19168,6 +19168,20 @@ void Player::InitPrimaryProfessions()
SetFreePrimaryProfessions(sWorld.getConfig(CONFIG_MAX_PRIMARY_TRADE_SKILL));
}
+Unit * Player::GetSelectedUnit() const
+{
+ if(m_curSelection)
+ return ObjectAccessor::GetUnit(*this, m_curSelection);
+ return NULL;
+}
+
+Player * Player::GetSelectedPlayer() const
+{
+ if(m_curSelection)
+ return ObjectAccessor::GetPlayer(*this, m_curSelection);
+ return NULL;
+}
+
void Player::SendComboPoints()
{
Unit *combotarget = ObjectAccessor::GetUnit(*this, m_comboTarget);