mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[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:
parent
bf9cccfd5b
commit
39b7636094
8 changed files with 41 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue