From 4d27c5b7a95718db5e1892574b2ec2ab3cbbc4a7 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 22 May 2014 12:37:43 +0000 Subject: [PATCH] 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 --- OvalePassiveAura.lua | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.9.5