aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 672be8614bb..832a8d46092 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4535,7 +4535,12 @@ uint8 Spell::CheckItems()
uint32 itemid, itemcount;
Player* p_caster = (Player*)m_caster;
- if(m_CastItem)
+ if(!m_CastItem)
+ {
+ if(m_castItemGUID)
+ return SPELL_FAILED_ITEM_NOT_READY;
+ }
+ else
{
itemid = m_CastItem->GetEntry();
if( !p_caster->HasItemCount(itemid,1) )