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

[svn] Fix the bug that next melee spells and auto shoot do not work.

Original author: megamage
Date: 2008-11-15 10:21:37-06:00

Files:
1 modified

Legend:

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

    r233 r236  
    18831883    } 
    18841884    m_target->CastSpell(target, triggeredSpellInfo, true, 0, this, originalCasterGUID); 
    1885     /*// All ok cast by default case 
    1886     Spell *spell = new Spell(m_target, triggeredSpellInfo, true, originalCasterGUID ); 
    1887  
    1888     SpellCastTargets targets; 
    1889     targets.setUnitTarget( target ); 
    1890  
    1891     // if spell create dynamic object extract area from it 
    1892     if(DynamicObject* dynObj = caster->GetDynObject(GetId())) 
    1893         targets.setDestination(dynObj->GetPositionX(),dynObj->GetPositionY(),dynObj->GetPositionZ()); 
    1894  
    1895     spell->prepare(&targets, this);*/ 
     1885} 
     1886 
     1887Unit* Aura::GetTriggerTarget() const 
     1888{ 
     1889    Unit* target = ObjectAccessor::GetUnit(*m_target, 
     1890        /*m_target->GetTypeId()==TYPEID_PLAYER ? 
     1891        ((Player*)m_target)->GetSelection() :*/ 
     1892        m_target->GetUInt64Value(UNIT_FIELD_TARGET)); 
     1893    return target ? target : m_target; 
    18961894} 
    18971895