Quantcast

Fix the cooldown recovery rate for Vial of Living Corruption.

Johnny C. Lam [05-22-14 - 12:37]
Fix the cooldown recovery rate for Vial of Living Corruption.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1488 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvalePassiveAura.lua
diff --git a/OvalePassiveAura.lua b/OvalePassiveAura.lua
index 9426fb3..dcaa27c 100644
--- a/OvalePassiveAura.lua
+++ b/OvalePassiveAura.lua
@@ -122,6 +122,10 @@ function OvalePassiveAura:UpdateReadiness()
 			-- Use a derived formula that very closely approximates the true cooldown recovery rate increase based on item level.
 			local ilevel = OvaleEquipement:GetEquippedItemLevel(slot)
 			local cdRecoveryRateIncrease = exp((ilevel - 528) * 0.009317881032 + 3.434954478)
+			if readiness == READINESS_TANK then
+				-- The cooldown recovery rate of the tank trinket is half the value of the same item-level DPS trinket.
+				cdRecoveryRateIncrease = cdRecoveryRateIncrease / 2
+			end
 			local value = 1 / (1 + cdRecoveryRateIncrease / 100)
 			OvaleAura:GainedAuraOnGUID(self_guid, start, spellId, self_guid, "HELPFUL", nil, nil, stacks, nil, duration, ending, nil, name, value, nil, nil)
 		else