Core/Spells: Implement SPELL_AURA_MOD_DURABILITY_LOSS

This commit is contained in:
Shocker
2011-11-26 22:30:27 +02:00
parent 92cc605de4
commit 0cb161db81
2 changed files with 3 additions and 1 deletions

View File

@@ -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)

View File

@@ -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