diff options
author | n0n4m3 <none@none> | 2009-12-26 14:02:24 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-26 14:02:24 +0100 |
commit | 088d332545d39c30d01ce91bc40d31393d3fd128 (patch) | |
tree | 3e84f12c75acf004b67c3b76eb9ec6267ba17d2e /src | |
parent | 9d015dfce8156c308ee4f379c5e47db3debd72d0 (diff) |
Fixed spell Rime, by Themris.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 |