Skip to content

Commit

Permalink
[8440] Reset cooldown for triggred spell 61848 before it casting.
Browse files Browse the repository at this point in the history
This is second case simialr hack, maybe possible find more nice way for this...
  • Loading branch information
VladimirMangos committed Aug 29, 2009
1 parent 0474f50 commit 4efac52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/game/SpellAuras.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit 4efac52

Please sign in to comment.