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
This commit is contained in:
thenecromancer
2010-01-13 09:49:37 +01:00
parent 44e2bfce77
commit a3e66287bf

View File

@@ -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