mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
Merge remote branch 'origin/master' into 330
This commit is contained in:
commit
4c8dd37612
46 changed files with 189 additions and 156 deletions
|
|
@ -3650,7 +3650,7 @@ void Spell::TakeCastItem()
|
|||
// item has limited charges
|
||||
if (proto->Spells[i].SpellCharges)
|
||||
{
|
||||
if (proto->Spells[i].SpellCharges < 0 && !proto->NonConsumable)
|
||||
if (proto->Spells[i].SpellCharges < 0 && !(proto->ExtraFlags & ITEM_EXTRA_NON_CONSUMABLE))
|
||||
expendable = true;
|
||||
|
||||
int32 charges = m_CastItem->GetSpellCharges(i);
|
||||
|
|
@ -5557,7 +5557,7 @@ SpellCastResult Spell::CheckItems()
|
|||
{
|
||||
// CastItem will be used up and does not count as reagent
|
||||
int32 charges = m_CastItem->GetSpellCharges(s);
|
||||
if (proto->Spells[s].SpellCharges < 0 && !proto->NonConsumable && abs(charges) < 2)
|
||||
if (proto->Spells[s].SpellCharges < 0 && !(proto->ExtraFlags & ITEM_EXTRA_NON_CONSUMABLE) && abs(charges) < 2)
|
||||
{
|
||||
++itemcount;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue