mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
*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(!GetSpellMaxRangeForFriend(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)))
|
||||
{
|
||||
AddUnitTarget(m_caster, i);
|
||||
continue;
|
||||
}
|
||||
|
||||
// add here custom effects that need default target.
|
||||
// FOR EVERY TARGET TYPE THERE IS A DIFFERENT FILL!!
|
||||
switch(m_spellInfo->Effect[i])
|
||||
|
||||
Reference in New Issue
Block a user