aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 8b368e737b5..0a204ed1803 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -6815,3 +6815,26 @@ bool ChatHandler::HandleUnPossessCommand(const char* args)
return true;
}
+
+bool ChatHandler::HandleBindSightCommand(const char* args)
+{
+ Unit* pUnit = getSelectedUnit();
+ if (!pUnit)
+ return false;
+
+ if (m_session->GetPlayer()->isPossessing())
+ return false;
+
+ pUnit->AddPlayerToVision(m_session->GetPlayer());
+
+ return true;
+}
+
+bool ChatHandler::HandleUnbindSightCommand(const char* args)
+{
+ if (m_session->GetPlayer()->isPossessing())
+ return false;
+
+ m_session->GetPlayer()->RemoveFarsightTarget();
+ return true;
+}