[8440] Reset cooldown for triggred spell 61848 before it casting.

This is second case simialr hack, maybe possible find more nice way for this...
This commit is contained in:
VladimirMangos 2009-08-30 00:22:44 +04:00
parent 4d413e4a87
commit c9f475dfa0
2 changed files with 7 additions and 1 deletions

View file

@ -5711,7 +5711,13 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
} }
// Aspect of the Dragonhawk dodge // Aspect of the Dragonhawk dodge
else if (GetSpellProto()->SpellFamilyFlags2 & 0x00001000) else if (GetSpellProto()->SpellFamilyFlags2 & 0x00001000)
{
spellId1 = 61848; 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 else
return; return;
break; break;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8439" #define REVISION_NR "8440"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__