diff options
author | megamage <none@none> | 2009-01-08 21:48:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-08 21:48:38 -0600 |
commit | 2377f49ea86b5c6a7f29b5d1949cd90b1594b660 (patch) | |
tree | d0d62dd56391544b4a09d0be189d28fefd339769 /src/game/Level3.cpp | |
parent | b57516e170cb3dd09ee7d4335dee0f8bbbc4a1df (diff) |
*Update charm and possess code.
--HG--
branch : trunk
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 6a05a81fbae..a825743481a 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -6915,7 +6915,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; } @@ -6923,11 +6923,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; } |