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:
hondacrx
2023-01-04 02:57:11 -05:00
parent 9dfd0d0bd5
commit 66605b58ac
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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)