mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Auras: Implemented SPELL_AURA_REMOVE_TRANSMOG_COST and SPELL_AURA_REMOVE_BARBER_SHOP_COST
This commit is contained in:
@@ -26168,6 +26168,9 @@ bool Player::CanCaptureTowerPoint() const
|
||||
|
||||
int64 Player::GetBarberShopCost(Trinity::IteratorPair<UF::ChrCustomizationChoice const*> newCustomizations) const
|
||||
{
|
||||
if (HasAuraType(SPELL_AURA_REMOVE_BARBER_SHOP_COST))
|
||||
return 0;
|
||||
|
||||
GtBarberShopCostBaseEntry const* bsc = sBarberShopCostBaseGameTable.GetRow(getLevel());
|
||||
if (!bsc) // shouldn't happen
|
||||
return 0;
|
||||
|
||||
@@ -163,7 +163,7 @@ void WorldSession::HandleTransmogrifyItems(WorldPackets::Transmogrification::Tra
|
||||
resetIllusionItems.push_back(itemTransmogrified);
|
||||
}
|
||||
|
||||
if (cost) // 0 cost if reverting look
|
||||
if (!player->HasAuraType(SPELL_AURA_REMOVE_TRANSMOG_COST) && cost) // 0 cost if reverting look
|
||||
{
|
||||
if (!player->HasEnoughMoney(cost))
|
||||
return;
|
||||
|
||||
@@ -290,8 +290,8 @@ NonDefaultConstructible<pAuraEffectHandler> AuraEffectHandler[TOTAL_AURAS]=
|
||||
&AuraEffect::HandleNULL, //219 SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL
|
||||
&AuraEffect::HandleNULL, //220 SPELL_AURA_MOD_ABILITY_SCHOOL_MASK
|
||||
&AuraEffect::HandleNULL, //221 SPELL_AURA_MOD_DETAUNT
|
||||
&AuraEffect::HandleNULL, //222 SPELL_AURA_REMOVE_TRANSMOG_COST
|
||||
&AuraEffect::HandleNULL, //223 SPELL_AURA_REMOVE_BARBER_SHOP_COST
|
||||
&AuraEffect::HandleNoImmediateEffect, //222 SPELL_AURA_REMOVE_TRANSMOG_COST implemented in WorldSession::HandleTransmogrifyItems
|
||||
&AuraEffect::HandleNoImmediateEffect, //223 SPELL_AURA_REMOVE_BARBER_SHOP_COST implemented in Player::GetBarberShopCost
|
||||
&AuraEffect::HandleNULL, //224 SPELL_AURA_LEARN_TALENT
|
||||
&AuraEffect::HandleNULL, //225 SPELL_AURA_MOD_VISIBILITY_RANGE
|
||||
&AuraEffect::HandleNoImmediateEffect, //226 SPELL_AURA_PERIODIC_DUMMY implemented in AuraEffect::PeriodicTick
|
||||
|
||||
Reference in New Issue
Block a user