From c9f475dfa001bf0d3a2768f5dc474f5dcfae2456 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sun, 30 Aug 2009 00:22:44 +0400 Subject: [PATCH] [8440] Reset cooldown for triggred spell 61848 before it casting. This is second case simialr hack, maybe possible find more nice way for this... --- src/game/SpellAuras.cpp | 6 ++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index c281e0320..370ea566b 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5711,7 +5711,13 @@ void Aura::HandleSpellSpecificBoosts(bool apply) } // Aspect of the Dragonhawk dodge else if (GetSpellProto()->SpellFamilyFlags2 & 0x00001000) + { spellId1 = 61848; + + // triggered spell have same category as main spell and cooldown + if (apply && m_target->GetTypeId()==TYPEID_PLAYER) + ((Player*)m_target)->RemoveSpellCooldown(61848); + } else return; break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 1f89d3cff..7f65cc3a9 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8439" + #define REVISION_NR "8440" #endif // __REVISION_NR_H__