mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user