From a3e66287bff298401e709fe91e2f75609b90f504 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Wed, 13 Jan 2010 09:49:37 +0100 Subject: Remove hack for Freezing Fog aura. Instead apply modifier directly to rune cost ( this will also fix runic power generation in that case ) --HG-- branch : trunk --- src/game/Spell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index a6f47e63a3c..a0621b06f3f 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4114,14 +4114,14 @@ 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) + { runeCost[i] = src->RuneCost[i]; + if(Player* modOwner = m_caster->GetSpellModOwner()) + modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_COST, runeCost[i], this); + } runeCost[RUNE_DEATH] = MAX_RUNES; // calculated later -- cgit v1.2.3