aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-04-25 13:58:26 +0200
committerQAston <none@none>2009-04-25 13:58:26 +0200
commite23ec703fedf828f37be5bd3a37b4db4359c8d9d (patch)
treeb14ea9a63ec9904b905cdf56bb395bd56c1bb8a6 /src/game/SpellMgr.cpp
parentfdc94c91fade8a88b30a478abe7244529e519e0c (diff)
*Trigger offhand hit for Whirlwind
*Allow to cast conflagrate if target is affected by shadowflame --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 3e9992b6544..53b72f7297f 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2310,7 +2310,10 @@ void SpellMgr::LoadSpellCustomAttr()
spellInfo->speed = SPEED_CHARGE;
mSpellCustomAttr[i] |= SPELL_ATTR_CU_CHARGE;
case SPELL_EFFECT_TRIGGER_SPELL:
- if(spellInfo->Targets & (TARGET_FLAG_SOURCE_LOCATION|TARGET_FLAG_DEST_LOCATION))
+ //if(spellInfo->Targets & (TARGET_FLAG_SOURCE_LOCATION|TARGET_FLAG_DEST_LOCATION))
+ if (SpellTargetType[spellInfo->EffectImplicitTargetA[j]]== TARGET_TYPE_DEST_CASTER ||
+ SpellTargetType[spellInfo->EffectImplicitTargetA[j]]== TARGET_TYPE_DEST_TARGET ||
+ SpellTargetType[spellInfo->EffectImplicitTargetA[j]]== TARGET_TYPE_DEST_DEST)
spellInfo->Effect[j] = SPELL_EFFECT_TRIGGER_MISSILE;
break;
}