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

[svn] Fix broken spell target 38 (script target).
Implement linked spells, but will not enable it before testing.

Original author: megamage
Date: 2008-10-29 14:19:31-05:00

Files:
1 modified

Legend:

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

    r120 r131  
    41634163            if(caster->GetTypeId()==TYPEID_UNIT && ((Creature*)caster)->isTotem() && ((Totem*)caster)->GetTotemType()==TOTEM_STATUE) 
    41644164                statue = ((Totem*)caster); 
     4165 
     4166 
     4167    if(int32 spell_triggered = spellmgr.GetSpellLinked(-(int32)Aur->GetSpellProto()->Id, 0)) 
     4168    { 
     4169        if(spell_triggered > 0) 
     4170        { 
     4171            if(Unit* caster = Aur->GetCaster()) 
     4172                CastSpell(this, spell_triggered, true, 0, 0, caster->GetGUID()); 
     4173        } 
     4174        else 
     4175            RemoveAurasDueToSpell(-spell_triggered); 
     4176    } 
    41654177 
    41664178    sLog.outDebug("Aura %u now is remove mode %d",Aur->GetModifier()->m_auraname, mode);