mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Spells: Implement SPELL_AURA_MOD_DURABILITY_LOSS
This commit is contained in:
@@ -5346,6 +5346,8 @@ void Player::DurabilityLoss(Item* item, double percent)
|
||||
if (!pMaxDurability)
|
||||
return;
|
||||
|
||||
percent /= GetTotalAuraMultiplier(SPELL_AURA_MOD_DURABILITY_LOSS);
|
||||
|
||||
uint32 pDurabilityLoss = uint32(pMaxDurability*percent);
|
||||
|
||||
if (pDurabilityLoss < 1)
|
||||
|
||||
@@ -397,7 +397,7 @@ enum AuraType
|
||||
SPELL_AURA_335 = 335,
|
||||
SPELL_AURA_MOD_FLYING_RESTRICTIONS = 336, // NYI
|
||||
SPELL_AURA_MOD_VENDOR_ITEMS_PRICES = 337, // NYI
|
||||
SPELL_AURA_MOD_DURABILITY_LOSS = 338, // NYI
|
||||
SPELL_AURA_MOD_DURABILITY_LOSS = 338,
|
||||
SPELL_AURA_INCREASE_SKILL_GAIN_CHANCE = 339, // NYI
|
||||
SPELL_AURA_340 = 340,
|
||||
SPELL_AURA_341 = 341, // cooldown decrease
|
||||
|
||||
Reference in New Issue
Block a user