mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Treat rune cooldowns as timers and not as remaining tick counts
Implement support for modifiers changing rune regeneration rate Apply all spells from Improved Unholy Aura --HG-- branch : trunk
This commit is contained in:
@@ -4229,7 +4229,7 @@ void Spell::TakeRunePower()
|
||||
RuneType rune = plr->GetCurrentRune(i);
|
||||
if((plr->GetRuneCooldown(i) == 0) && (runeCost[rune] > 0))
|
||||
{
|
||||
plr->SetRuneCooldown(i, RUNE_COOLDOWN); // 5*2=10 sec
|
||||
plr->SetRuneCooldown(i, plr->GetRuneBaseCooldown(i));
|
||||
plr->SetLastUsedRune(RuneType(rune));
|
||||
runeCost[rune]--;
|
||||
}
|
||||
@@ -4244,7 +4244,7 @@ void Spell::TakeRunePower()
|
||||
RuneType rune = plr->GetCurrentRune(i);
|
||||
if((plr->GetRuneCooldown(i) == 0) && (rune == RUNE_DEATH))
|
||||
{
|
||||
plr->SetRuneCooldown(i, RUNE_COOLDOWN); // 5*2=10 sec
|
||||
plr->SetRuneCooldown(i, plr->GetRuneBaseCooldown(i));
|
||||
plr->SetLastUsedRune(RuneType(rune));
|
||||
runeCost[rune]--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user