diff options
| author | megamage <none@none> | 2009-04-18 10:46:30 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-18 10:46:30 -0500 |
| commit | 5629168dbbc658d44e8b12544b768ac23bf95991 (patch) | |
| tree | aed28692f8dfea8996ea01eb0438435f3223bc49 /src/game/Spell.cpp | |
| parent | 5d2968792fb04d54008466166e589dcd3ad7fc0f (diff) | |
*Fix some spells with TARGET_FLAG_CASTER.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 6 |
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. |
