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 | |
| 1887 | Unit* 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; |