Core/Spells: Add default handler for apply aura spell effect when both ImplicitTargets are 0, removed unused structure
This commit is contained in:
@@ -755,6 +755,8 @@ void Spell::SelectSpellTargets()
|
|||||||
AddUnitTarget(m_caster, i);
|
AddUnitTarget(m_caster, i);
|
||||||
break;
|
break;
|
||||||
default: // apply to target in other case
|
default: // apply to target in other case
|
||||||
|
if (m_targets.getUnitTarget())
|
||||||
|
AddUnitTarget(m_targets.getUnitTarget(), i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -765,9 +767,7 @@ void Spell::SelectSpellTargets()
|
|||||||
break;
|
break;
|
||||||
case SPELL_EFFECT_SKIN_PLAYER_CORPSE:
|
case SPELL_EFFECT_SKIN_PLAYER_CORPSE:
|
||||||
if (m_targets.getUnitTarget())
|
if (m_targets.getUnitTarget())
|
||||||
{
|
|
||||||
AddUnitTarget(m_targets.getUnitTarget(), i);
|
AddUnitTarget(m_targets.getUnitTarget(), i);
|
||||||
}
|
|
||||||
else if (m_targets.getCorpseTargetGUID())
|
else if (m_targets.getCorpseTargetGUID())
|
||||||
{
|
{
|
||||||
Corpse *corpse = ObjectAccessor::GetCorpse(*m_caster,m_targets.getCorpseTargetGUID());
|
Corpse *corpse = ObjectAccessor::GetCorpse(*m_caster,m_targets.getCorpseTargetGUID());
|
||||||
|
|||||||
@@ -709,13 +709,6 @@ enum SpellScriptTargetType
|
|||||||
|
|
||||||
#define MAX_SPELL_TARGET_TYPE 4
|
#define MAX_SPELL_TARGET_TYPE 4
|
||||||
|
|
||||||
struct SpellTargetEntry
|
|
||||||
{
|
|
||||||
SpellTargetEntry(SpellScriptTargetType type_,uint32 targetEntry_) : type(type_), targetEntry(targetEntry_) {}
|
|
||||||
SpellScriptTargetType type;
|
|
||||||
uint32 targetEntry;
|
|
||||||
};
|
|
||||||
|
|
||||||
// coordinates for spells (accessed using SpellMgr functions)
|
// coordinates for spells (accessed using SpellMgr functions)
|
||||||
struct SpellTargetPosition
|
struct SpellTargetPosition
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user