From 92d8abea9539402f382c7a9fc06bb7fd1e195fc4 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 22 Apr 2009 22:04:13 -0500 Subject: *Fix some broken spells without targetA and B. --HG-- branch : trunk --- src/game/Spell.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index fde1b8e3fdb..620131e61f6 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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]) -- cgit v1.2.3