aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-30 21:40:54 -0600
committermegamage <none@none>2008-12-30 21:40:54 -0600
commit815a7641d257256479273e24e5e1052737428c80 (patch)
tree85a3a6ec137a7cda14a39354581413e599650ce9 /src
parent950a61e2ea8cc8bd34454ab2d2d47127924e0951 (diff)
*Fix another bug about Cast item.
--HG-- branch : trunk
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) )