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

Now not only mana/health potion will restore cooldown counting at combat end.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-15 17:20:49 -06:00
parent 596e9b353a
commit 133a1f2d33
+2 -2
View File
@@ -2620,8 +2620,8 @@ void Spell::finish(bool ok)
m_caster->resetAttackTimer(RANGED_ATTACK); m_caster->resetAttackTimer(RANGED_ATTACK);
} }
// mana/health potions, disabled by client, send event "not in combat" // potions disabled by client, send event "not in combat" if need
if (m_caster->GetTypeId() == TYPEID_PLAYER && m_spellInfo->Category == SPELLCATEGORY_HEALTH_MANA_POTIONS) if (m_caster->GetTypeId() == TYPEID_PLAYER)
((Player*)m_caster)->UpdatePotionCooldown(this); ((Player*)m_caster)->UpdatePotionCooldown(this);
// call triggered spell only at successful cast (after clear combo points -> for add some if need) // call triggered spell only at successful cast (after clear combo points -> for add some if need)