From 0085572de163a0efc50be8d2225aae0be52c9ffa Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 3 May 2009 10:50:31 -0500 Subject: [PATCH] *Add a missing part during merging from TC1 --HG-- branch : trunk --- src/game/Spell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 9ab0c9d9f1a..ab48515053d 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2060,9 +2060,9 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) sLog.outErrorDb("Spell (ID: %u) (caster Entry: %u) does not have record in `spell_script_target`", m_spellInfo->Id, m_caster->GetEntry()); if(IsPositiveEffect(m_spellInfo->Id, i)) - SearchAreaTarget(unitList, radius, PUSH_DST_CENTER, SPELL_TARGETS_ALLY); + SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ALLY); else - SearchAreaTarget(unitList, radius, PUSH_DST_CENTER, SPELL_TARGETS_ENEMY); + SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ENEMY); } // let it be done in one check? else @@ -2070,7 +2070,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) for(SpellScriptTarget::const_iterator i_spellST = lower; i_spellST != upper; ++i_spellST) { if(i_spellST->second.type == SPELL_TARGET_TYPE_CREATURE) - SearchAreaTarget(unitList, radius, PUSH_DST_CENTER, SPELL_TARGETS_ENTRY, i_spellST->second.targetEntry); + SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ENTRY, i_spellST->second.targetEntry); } } }