[7462] Lost part of "[7456] Batter check for items with delayed cooldown.".

Now not only mana/health potion will restore cooldown counting at combat end.
This commit is contained in:
VladimirMangos 2009-03-15 23:35:27 +03:00
parent afe5eb3e1d
commit 57c415f5e1
2 changed files with 3 additions and 3 deletions

View file

@ -2770,8 +2770,8 @@ void Spell::finish(bool ok)
((Player*)m_caster)->ClearComboPoints();
}
// mana/health potions, disabled by client, send event "not in combat"
if (m_caster->GetTypeId() == TYPEID_PLAYER && m_spellInfo->Category == SPELLCATEGORY_HEALTH_MANA_POTIONS)
// potions disabled by client, send event "not in combat" if need
if (m_caster->GetTypeId() == TYPEID_PLAYER)
((Player*)m_caster)->UpdatePotionCooldown(this);
// call triggered spell only at successful cast (after clear combo points -> for add some if need)