*Fix another bug about Cast item.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-30 21:40:54 -06:00
parent 950a61e2ea
commit 815a7641d2
+6 -1
View File
@@ -4535,7 +4535,12 @@ uint8 Spell::CheckItems()
uint32 itemid, itemcount; uint32 itemid, itemcount;
Player* p_caster = (Player*)m_caster; 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(); itemid = m_CastItem->GetEntry();
if( !p_caster->HasItemCount(itemid,1) ) if( !p_caster->HasItemCount(itemid,1) )