[8084] Correctly show spell icon disabled state at relogin for spells with cooldown delayed until expire. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-27 18:28:26 -05:00
parent 02a83001a4
commit fc0e8a251b
2 changed files with 17 additions and 12 deletions
+2
View File
@@ -1409,6 +1409,8 @@ class TRINITY_DLL_SPEC Player : public Unit
void DropModCharge(SpellModifier * mod, Spell * spell);
void SetSpellModTakingSpell(Spell* spell, bool apply);
static uint32 const infinityCooldownDelay = MONTH; // used for set "infinity cooldowns" for spells and check
static uint32 const infinityCooldownDelayCheck = MONTH/2;
bool HasSpellCooldown(uint32 spell_id) const
{
SpellCooldowns::const_iterator itr = m_spellCooldowns.find(spell_id);