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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user