[7456] Batter check for items with delayed cooldown. Author: VladimirMangos
This must solve problems with some still stuck until relogin items. --HG-- branch : trunk
This commit is contained in:
+3
-4
@@ -2454,12 +2454,11 @@ void Spell::SendSpellCooldown()
|
|||||||
|
|
||||||
Player* _player = (Player*)m_caster;
|
Player* _player = (Player*)m_caster;
|
||||||
|
|
||||||
// mana/health potions, disabled by client
|
// mana/health/etc potions, disabled by client (until combat out as declarate)
|
||||||
if (m_spellInfo->Category==SPELLCATEGORY_HEALTH_MANA_POTIONS)
|
if (m_CastItem && m_CastItem->IsPotion())
|
||||||
{
|
{
|
||||||
// need in some way provided data for Spell::finish SendCooldownEvent
|
// need in some way provided data for Spell::finish SendCooldownEvent
|
||||||
if(m_CastItem)
|
_player->SetLastPotionId(m_CastItem->GetEntry());
|
||||||
_player->SetLastPotionId(m_CastItem->GetEntry());
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user