Core/Auras: Implemented SPELL_AURA_REMOVE_TRANSMOG_COST and SPELL_AURA_REMOVE_BARBER_SHOP_COST

Port From (https://github.com/TrinityCore/TrinityCore/commit/fea8306aa3ce362bac7be34ad30a803d1aecf49d)
This commit is contained in:
hondacrx
2021-02-22 15:12:59 -05:00
parent 762090efb1
commit 253fd8b976
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -3443,6 +3443,9 @@ namespace Game.Entities
public long GetBarberShopCost(List<ChrCustomizationChoice> newCustomizations)
{
if (HasAuraType(AuraType.RemoveBarberShopCost))
return 0;
GtBarberShopCostBaseRecord bsc = CliDB.BarberShopCostBaseGameTable.GetRow(GetLevel());
if (bsc == null) // shouldn't happen
return 0;
@@ -172,7 +172,7 @@ namespace Game
resetIllusionItems.Add(itemTransmogrified);
}
if (cost != 0) // 0 cost if reverting look
if (!player.HasAuraType(AuraType.RemoveTransmogCost) && cost != 0) // 0 cost if reverting look
{
if (!player.HasEnoughMoney(cost))
return;