mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11646] Implement support item converting at expire
Example: items 44623->44625->44627 convertion chain * New table `item_enchantment_template` store original->final item pairs Original item must have duration setup. * Small change in GetItemConvert for consistence (now 0 returned if no convert pair instead original entry id) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
a97370a7f0
commit
2d7768a5ab
10 changed files with 117 additions and 13 deletions
|
|
@ -19194,7 +19194,7 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot, uin
|
|||
ItemPrototype const* crProto = ObjectMgr::GetItemPrototype(crItem->item);
|
||||
if (crProto->Flags & ITEM_FLAG_BOA && crProto->RequiredReputationFaction &&
|
||||
uint32(GetReputationRank(crProto->RequiredReputationFaction)) >= crProto->RequiredReputationRank)
|
||||
converted = item == sObjectMgr.GetItemConvert(crItem->item, getRaceMask());
|
||||
converted = (sObjectMgr.GetItemConvert(crItem->item, getRaceMask()) != 0);
|
||||
|
||||
if (!converted)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue