aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b7f67f63501..f5758a22b15 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -466,6 +466,12 @@ void Spell::FillTargetMap()
continue;
}
+ if(tmpUnitMap.empty() && m_spellInfo->Targets & TARGET_FLAG_CASTER)
+ {
+ AddUnitTarget(m_caster, i);
+ continue;
+ }
+
if(!targetA && !targetB)
{
// add here custom effects that need default target.