diff options
author | thenecromancer <none@none> | 2010-02-18 01:06:47 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-02-18 01:06:47 +0100 |
commit | cedf706f29fa4fdaccd9d12ee88ac47e6b4a4f16 (patch) | |
tree | 330ac4db12021614960080eaee6be61301e5add0 /src/game/Spell.cpp | |
parent | 54d8411eb950e68f2abee2be9f4491d368e024fe (diff) |
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
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 229f40bb3c1..98ac23e69d5 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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]--; |