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/CreatureAISelector.cpp

    r102 r174  
    5757            if( creature->isGuard() ) 
    5858                ai_factory = ai_registry.GetRegistryItem("GuardAI");  
    59             else if(creature->isPet() || creature->isCharmed()) 
     59            else if(creature->isPet() || (creature->isCharmed() && !creature->isPossessed())) 
    6060                ai_factory = ai_registry.GetRegistryItem("PetAI"); 
    6161            else if(creature->isTotem()) 
     
    6363            else if(creature->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER) 
    6464                ai_factory = ai_registry.GetRegistryItem("NullCreatureAI"); 
     65            else if(creature->isPossessed()) 
     66                creature->InitPossessedAI(); 
    6567        } 
    6668