aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-14 20:03:26 -0600
committermegamage <none@none>2009-03-14 20:03:26 -0600
commitd180bb1a1592e9bffcc013d70d085e71828556bf (patch)
treeda2d9fa405f48c58570d1b0b0a35f656ce6b3003 /src
parentef5d01d66dd1ae55ac1644216cf3f139290503f5 (diff)
[7456] Batter check for items with delayed cooldown. Author: VladimirMangos
This must solve problems with some still stuck until relogin items. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3d1011eb306..fb80819fcc0 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2454,12 +2454,11 @@ 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());
+ _player->SetLastPotionId(m_CastItem->GetEntry());
return;
}