From 3b8be6d108fbca53277ec42ed56cc0768e52fce1 Mon Sep 17 00:00:00 2001 From: Liberate Date: Sat, 29 May 2010 10:11:39 +0200 Subject: Fixes the cooldown of the heroic version of the Deathbringer's Will Trinket. Thanks nightseas for testing and finding this bug. --HG-- branch : trunk --- src/game/Unit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c8a00d1afe4..f259728a88f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5687,7 +5687,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger } break; } - case 71562: // Deahtbringer's Will Heroic + case 71562: // Deathbringer's Will Heroic { if (GetTypeId() != TYPEID_PLAYER) return false; @@ -5728,7 +5728,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger CastSpell(target,RandomSpells[rand_spell],true,castItem,triggeredByAura, originalCaster); for (std::vector::iterator itr = RandomSpells.begin(); itr != RandomSpells.end(); ++itr) { - ToPlayer()->AddSpellCooldown(*itr,0,time(NULL) + cooldown); + if (!ToPlayer()->HasSpellCooldown(*itr)) + ToPlayer()->AddSpellCooldown(*itr,0,time(NULL) + cooldown); } break; } -- cgit v1.2.3