From 1f602fae4743e511b63244d9d26653f3c5dafefa Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Sat, 23 Jan 2010 16:19:23 +0100 Subject: Apply SPELLMOD_COST in takeRunePower() ( replacement for removed hack in previous commit ) --HG-- branch : trunk --- src/game/Spell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index b7dee9c71a2..362c9c7bf21 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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 -- cgit v1.2.3