mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7456] Batter check for items with delayed cooldown.
This must solve problems with some still stuck until relogin items.
This commit is contained in:
parent
7cc704149a
commit
435b53c853
2 changed files with 4 additions and 5 deletions
|
|
@ -2567,11 +2567,10 @@ void Spell::SendSpellCooldown()
|
|||
|
||||
Player* _player = (Player*)m_caster;
|
||||
|
||||
// mana/health potions, disabled by client
|
||||
if (m_spellInfo->Category==SPELLCATEGORY_HEALTH_MANA_POTIONS)
|
||||
// mana/health/etc potions, disabled by client (until combat out as declarate)
|
||||
if (m_CastItem && m_CastItem->IsPotion())
|
||||
{
|
||||
// need in some way provided data for Spell::finish SendCooldownEvent
|
||||
if(m_CastItem)
|
||||
_player->SetLastPotionId(m_CastItem->GetEntry());
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7455"
|
||||
#define REVISION_NR "7456"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue