Apply SPELLMOD_COST in takeRunePower() ( replacement for removed hack in previous commit )
--HG-- branch : trunk
This commit is contained in:
@@ -4184,6 +4184,8 @@ void Spell::TakeRunePower()
|
|||||||
for (uint32 i = 0; i < RUNE_DEATH; ++i)
|
for (uint32 i = 0; i < RUNE_DEATH; ++i)
|
||||||
{
|
{
|
||||||
runeCost[i] = src->RuneCost[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
|
runeCost[RUNE_DEATH] = 0; // calculated later
|
||||||
|
|||||||
Reference in New Issue
Block a user