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

[svn] * Disabled the move and stay commands while pet is possessed
* Make pet come back to its owner after possession ends if it's not currently in combat
* Allow the possessed unit to properly change attack targets
* Also remove charm effects from charmed target on owner aura cancel

Original author: gvcoman
Date: 2008-11-08 23:32:15-06:00

Files:
1 modified

Legend:

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

    r193 r200  
    1876518765    { 
    1876618766        target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE); 
     18767        // Reinitialize the pet bar and make the pet come back to the owner 
    1876718768        if(((Creature*)target)->isPet()) 
     18769        { 
    1876818770            PetSpellInitialize(); 
     18771            if (!target->getVictim()) 
     18772            { 
     18773                target->GetMotionMaster()->MoveFollow(this, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE); 
     18774                target->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW); 
     18775            } 
     18776        } 
    1876918777        else if (target->isAlive()) 
    1877018778        {