Core/Items: Dropped deprecated ItemFlag2 ITEM_FLAG2_DONT_IGNORE_BUY_PRICE
Port From (https://github.com/TrinityCore/TrinityCore/commit/e275c39586dba170c931b972aa7e9cc3c691a533)
This commit is contained in:
@@ -659,7 +659,8 @@ namespace Game
|
||||
continue;
|
||||
}
|
||||
|
||||
int price = (int)(vendorItem.IsGoldRequired(itemTemplate) ? Math.Floor(itemTemplate.GetBuyPrice() * discountMod) : 0);
|
||||
ulong price = (ulong)Math.Floor(itemTemplate.GetBuyPrice() * discountMod);
|
||||
price = itemTemplate.GetBuyPrice() > 0 ? Math.Max(1ul, price) : price;
|
||||
|
||||
int priceMod = GetPlayer().GetTotalAuraModifier(AuraType.ModVendorItemsPrices);
|
||||
if (priceMod != 0)
|
||||
|
||||
Reference in New Issue
Block a user