aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-01-13 09:49:37 +0100
committerthenecromancer <none@none>2010-01-13 09:49:37 +0100
commita3e66287bff298401e709fe91e2f75609b90f504 (patch)
tree8b95283ca44c1562c0cb709dfe104e43d453ab9e /src/game/Spell.cpp
parent44e2bfce778d5ccc0b4c7eb1d8383eb23491eb18 (diff)
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
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp8
1 files changed, 4 insertions, 4 deletions
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