aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-07 07:26:11 +0800
committermegamage <none@none>2009-07-07 07:26:11 +0800
commitaf1c18852446e6be81376a98eba8e2543985479d (patch)
tree7330c340950ea9a77fe7862e7574dd3515caa759 /src/game/Unit.cpp
parent3eab803495bb5b43914415b730375692d6f284b1 (diff)
[8125] Optimized spell cooldowns remove. Author: ApoC
Traverse only active cooldowns instead of whole player spell map. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 95efd29dc48..bdef7cb2d71 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7792,9 +7792,9 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
// Sword and Board
case 50227:
{
- // remove cooldown of Shield Slam
+ // Remove cooldown on Shield Slam
if (GetTypeId()==TYPEID_PLAYER)
- ((Player*)this)->RemoveCategoryCooldown(1209);
+ ((Player*)this)->RemoveSpellCategoryCooldown(1209, true);
break;
}
case 63375: // Improved Stormstrike