aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 16:21:15 -0600
committermegamage <none@none>2009-03-28 16:21:15 -0600
commite76a15491b4cf874d60f2bc2cd95b02e4b1ee5b4 (patch)
tree471744c156e8e1138037da054be1900acd90c7b3 /src
parenta9864927186687a76b4ce969f5afb6058935f5f5 (diff)
[7557] Fixed triggered spells which ImplicitTarget is 0 like 50516 and ranks Author: arrai
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 04589a759c5..cb9ed28033c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -539,7 +539,8 @@ void Spell::FillTargetMap()
case SPELL_EFFECT_LEARN_SPELL:
if(m_targets.getUnitTarget())
tmpUnitMap.push_back(m_targets.getUnitTarget());
- else
+ // Triggered spells have additional spell targets - cast them even if no explicit unit target is given (required for spell 50516 for example)
+ else if(m_spellInfo->Effect[i] == SPELL_EFFECT_TRIGGER_SPELL)
tmpUnitMap.push_back(m_caster);
break;
case SPELL_EFFECT_SUMMON_PLAYER: