mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +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();
|
((Player*)m_caster)->ClearComboPoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7461"
|
#define REVISION_NR "7462"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue