Apply SPELLMOD_COST in takeRunePower() ( replacement for removed hack in previous commit )

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-01-23 16:19:23 +01:00
parent 9a236d18ff
commit 1f602fae47

View File

@@ -4184,6 +4184,8 @@ void Spell::TakeRunePower()
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] = 0; // calculated later