[8125] Optimized spell cooldowns remove. Author: ApoC

Traverse only active cooldowns instead of whole player spell map.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-07 07:26:11 +08:00
parent 3eab803495
commit af1c188524
4 changed files with 40 additions and 55 deletions
+2 -2
View File
@@ -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