mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
afe5eb3e1d
commit
57c415f5e1
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue