Core/Spells: Fix ammo depletion handling

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-09-08 05:39:24 +03:00
parent 948c1f0fd6
commit 96812cfa27

View File

@@ -6436,7 +6436,10 @@ SpellCastResult Spell::CheckItems()
}
if (!m_caster->ToPlayer()->HasItemCount(ammo, 1))
{
m_caster->ToPlayer()->SetUInt32Value(PLAYER_AMMO_ID, 0);
return SPELL_FAILED_NO_AMMO;
}
}; break;
case ITEM_SUBCLASS_WEAPON_WAND:
break;