[7363] Propertly set cooldown at server side for category spells at cooldown event send to client.

Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
This commit is contained in:
VladimirMangos 2009-03-01 05:42:47 +03:00
parent 2b9eeb782e
commit ed6123c804
6 changed files with 92 additions and 93 deletions

View file

@ -1117,6 +1117,7 @@ void Aura::_RemoveAura()
if(caster && caster->GetTypeId() == TYPEID_PLAYER)
{
if ( GetSpellProto()->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE )
// note: item based cooldowns and cooldown spell mods with charges ignored (unknown existed cases)
((Player*)caster)->SendCooldownEvent(GetSpellProto());
}
}