aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNevan <none@none>2009-08-18 00:35:32 +0200
committerNevan <none@none>2009-08-18 00:35:32 +0200
commit14022b619f41a348521c6442825b033f96c0ce87 (patch)
treedcfc432ce069693166093e45b3129666d18a092d /src
parentb91be086f0606f017ca8766a8540823a234e36ea (diff)
*Fix Glyph of Typhoon
*Fix Glyph of Thunderstorm --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 10562bbd4fb..04e3f4e31a8 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6268,6 +6268,22 @@ void Spell::EffectKnockBack(uint32 i)
if(!unitTarget)
return;
+ // Typhoon
+ if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellFamilyFlags[1] & 0x01000000)
+ {
+ // Glyph of Typhoon
+ if (m_caster->HasAura(62135))
+ return;
+ }
+
+ // Thunderstorm
+ if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellFamilyFlags[1] & 0x00002000)
+ {
+ // Glyph of Thunderstorm
+ if (m_caster->HasAura(62132))
+ return;
+ }
+
float x, y;
if(m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION)
{