Changeset 149 for trunk/src/game/SpellEffects.cpp
- Timestamp:
- 11/19/08 13:40:46 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellEffects.cpp
r145 r149 4074 4074 4075 4075 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); 4082 4082 } 4083 4083