Merchants will now keep track of charges sold to them properly so it is no longer possible to recharge items using merchants.

This commit is contained in:
cavedude00
2014-02-23 15:55:26 -08:00
parent 5a6c25887a
commit c6377b93d5
3 changed files with 42 additions and 27 deletions
+8
View File
@@ -238,6 +238,14 @@ bool ItemInst::IsStackable() const
return m_item->Stackable;
}
bool ItemInst::IsCharged() const
{
if(m_item->MaxCharges > 1)
return true;
else
return false;
}
// Can item be equipped?
bool ItemInst::IsEquipable(uint16 race, uint16 class_) const
+1
View File
@@ -291,6 +291,7 @@ public:
// Can item be stacked?
bool IsStackable() const;
bool IsCharged() const;
// Can item be equipped by/at?
bool IsEquipable(uint16 race, uint16 class_) const;