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

[svn] *Implement new player conditions CONDITION_NO_AURA, CONDITION_ACTIVE_EVENT
* Default behaviour of pets for creatures changed to REACT_DEFENSIVE
* Disallowed sending wrapped items as COD
* Prevent loading and saving single target auras for pet in same way as already implemented for player
* Correctly limit use some flask types to zones.
* Fixed extracting common.MPQ under *nix
* Many small xleanups and fixes.
** mangos merge rev.

TEST REV so be careful of creepy crawly bugs!

Original author: KingPin?
Date: 2008-11-02 16:53:46-06:00

Files:
1 modified

Legend:

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

    r145 r149  
    40744074 
    40754075    uint32 faction = m_caster->getFaction(); 
    4076     if(m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->isTotem()) 
    4077     { 
    4078         Unit* owner = ((Totem*)m_caster)->GetOwner(); 
    4079         if(owner) 
    4080             faction = owner->getFaction(); 
    4081         NewSummon->GetCharmInfo()->SetReactState(REACT_AGGRESSIVE); 
     4076    if(m_caster->GetTypeId() == TYPEID_UNIT) 
     4077    { 
     4078                if ( ((Creature*)m_caster)->isTotem() ) 
     4079                        NewSummon->GetCharmInfo()->SetReactState(REACT_AGGRESSIVE); 
     4080                else 
     4081                        NewSummon->GetCharmInfo()->SetReactState(REACT_DEFENSIVE); 
    40824082    } 
    40834083