Show
Ignore:
Timestamp:
11/19/08 13:43:15 (17 years ago)
Author:
yumileroy
Message:

[svn] Implemented player on player and player on creature possession:
* Implemented packet and vision forwarding through possessed units
* Added new OnPossess? script call alerting scripts on when possession is applied/removed
* Moved fall damage and fall under map calculations into the Player class
* Added new PossessedAI that is applied only while possession on creature is active
* Implemented summon possessed spell effect
* Fixed Eyes of the Beast

Original author: gvcoman
Date: 2008-11-05 20:51:05-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/WorldSession.cpp

    r173 r174  
    367367            _player->RemoveFromGroup(); 
    368368 
     369        // Unpossess the current possessed unit of player 
     370        if (_player->isPossessing()) 
     371            _player->RemovePossess(false); 
     372 
     373        // Remove any possession of this player on logout 
     374        _player->UnpossessSelf(false); 
     375 
    369376        ///- Remove the player from the world 
    370377        // the player may not be in the world when logging out