*Update charm and possess code.
--HG-- branch : trunk
This commit is contained in:
1 parent
b57516e170
commit
2377f49ea8
13 files changed
+363
-363
No files matched your search
+2
-6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user