*Fix some broken spells without targetA and B.
--HG-- branch : trunk
This commit is contained in:
@@ -473,6 +473,12 @@ void Spell::FillTargetMap()
|
|||||||
|
|
||||||
if(!targetA && !targetB)
|
if(!targetA && !targetB)
|
||||||
{
|
{
|
||||||
|
if(!GetSpellMaxRangeForFriend(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)))
|
||||||
|
{
|
||||||
|
AddUnitTarget(m_caster, i);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// add here custom effects that need default target.
|
// add here custom effects that need default target.
|
||||||
// FOR EVERY TARGET TYPE THERE IS A DIFFERENT FILL!!
|
// FOR EVERY TARGET TYPE THERE IS A DIFFERENT FILL!!
|
||||||
switch(m_spellInfo->Effect[i])
|
switch(m_spellInfo->Effect[i])
|
||||||
|
|||||||
Reference in New Issue
Block a user