[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:
+2
-2
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user