Core/Spells: Add default handler for apply aura spell effect when both ImplicitTargets are 0, removed unused structure
This commit is contained in:
1 parent
a5a545a403
commit
64caf2cdf2
3 files changed
+3
-10
No files matched your search
@@ -755,6 +755,8 @@ void Spell::SelectSpellTargets()
|
||||
AddUnitTarget(m_caster, i);
|
||||
break;
|
||||
default: // apply to target in other case
|
||||
if (m_targets.getUnitTarget())
|
||||
AddUnitTarget(m_targets.getUnitTarget(), i);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -765,9 +767,7 @@ void Spell::SelectSpellTargets()
|
||||
break;
|
||||
case SPELL_EFFECT_SKIN_PLAYER_CORPSE:
|
||||
if (m_targets.getUnitTarget())
|
||||
{
|
||||
AddUnitTarget(m_targets.getUnitTarget(), i);
|
||||
}
|
||||
else if (m_targets.getCorpseTargetGUID())
|
||||
{
|
||||
Corpse *corpse = ObjectAccessor::GetCorpse(*m_caster,m_targets.getCorpseTargetGUID());
|
||||
|
||||
Reference in new issue
Block a user