From 14022b619f41a348521c6442825b033f96c0ce87 Mon Sep 17 00:00:00 2001 From: Nevan Date: Tue, 18 Aug 2009 00:35:32 +0200 Subject: *Fix Glyph of Typhoon *Fix Glyph of Thunderstorm --HG-- branch : trunk --- src/game/SpellEffects.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3