From af1c18852446e6be81376a98eba8e2543985479d Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 7 Jul 2009 07:26:11 +0800 Subject: [8125] Optimized spell cooldowns remove. Author: ApoC Traverse only active cooldowns instead of whole player spell map. --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Unit.cpp') 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 -- cgit v1.2.3