[9244] Implement talent Rime

And apply SPELLMOD_COST to rune spell cast as part this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Laise 2010-01-23 20:17:00 +03:00 committed by VladimirMangos
parent bf9cccfd5b
commit 39b7636094
8 changed files with 41 additions and 6 deletions

View file

@ -3757,6 +3757,16 @@ SpellCastResult Spell::CheckOrTakeRunePower(bool take)
if (runeCost[rune] <= 0)
continue;
int32 runeCostTemp = runeCost[rune] * 10000;
if(Player* modOwner = plr->GetSpellModOwner())
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_COST, runeCostTemp, this);
if (runeCostTemp <= 0)
{
--runeCost[rune];
continue;
}
if(plr->GetRuneCooldown(i) == 0)
{
if (take)