From 088d332545d39c30d01ce91bc40d31393d3fd128 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Sat, 26 Dec 2009 14:02:24 +0100 Subject: Fixed spell Rime, by Themris. --HG-- branch : trunk --- src/game/Spell.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 0b7e8f401be..0e56c276bb0 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4101,6 +4101,10 @@ SpellCastResult Spell::CheckRuneCost(uint32 runeCostID) if(src->NoRuneCost()) return SPELL_CAST_OK; + // Freezing Fog makes Howling Blast cost no runes + if (m_caster->HasAura(59052) && m_spellInfo->SpellFamilyFlags[1] & 0x2) + return SPELL_CAST_OK; + int32 runeCost[NUM_RUNE_TYPES]; // blood, frost, unholy, death for (uint32 i = 0; i < RUNE_DEATH; ++i) @@ -4139,6 +4143,14 @@ void Spell::TakeRunePower() if(!src || (src->NoRuneCost() && src->NoRunicPowerGain())) return; + + // Freezing Fog makes Howling Blast cost no runes + if (m_caster->HasAura(59052) && m_spellInfo->SpellFamilyFlags[1] & 0x2) + { + m_caster->RemoveAurasDueToSpell(59052, m_caster->GetGUID()); + return; + } + m_runesState = plr->GetRunesState(); // store previous state int32 runeCost[NUM_RUNE_TYPES]; // blood, frost, unholy, death -- cgit v1.2.3