diff options
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r-- | src/game/Level3.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 3ac749531fb..601f7f6bdfb 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -6889,7 +6889,7 @@ bool ChatHandler::HandlePossessCommand(const char* args) if (pUnit->GetTypeId() == TYPEID_PLAYER) return false; - m_session->GetPlayer()->Possess(pUnit); + pUnit->SetCharmedOrPossessedBy(m_session->GetPlayer(), true); return true; } @@ -6897,11 +6897,7 @@ bool ChatHandler::HandlePossessCommand(const char* args) bool ChatHandler::HandleUnPossessCommand(const char* args) { // Use this command to also unpossess ourselves - if (m_session->GetPlayer()->isPossessed()) - m_session->GetPlayer()->UnpossessSelf(false); - else - m_session->GetPlayer()->RemovePossess(false); - + m_session->GetPlayer()->RemoveCharmedOrPossessedBy(NULL); return true; } |