Quantcast

Hunters also have a 1s GCD.

Johnny C. Lam [05-03-14 - 00:25]
Hunters also have a 1s GCD.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1351 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCooldown.lua
diff --git a/OvaleCooldown.lua b/OvaleCooldown.lua
index 0d4a4b6..491cc6e 100644
--- a/OvaleCooldown.lua
+++ b/OvaleCooldown.lua
@@ -1,7 +1,7 @@
 --[[--------------------------------------------------------------------
     Ovale Spell Priority
     Copyright (C) 2012 Sidoine
-    Copyright (C) 2012, 2013 Johnny C. Lam
+    Copyright (C) 2012, 2013, 2014 Johnny C. Lam

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License in the LICENSE
@@ -57,6 +57,8 @@ function OvaleCooldown:GetGCD(spellId)
 		cd = 1.0
 	elseif self_class == "DRUID" and OvaleStance:IsStance("druid_cat_form") then
 		cd = 1.0
+	elseif self_class == "HUNTER" then
+		cd = 1.0
 	elseif self_class == "MONK" then
 		cd = 1.0
 	elseif self_class == "ROGUE" then
@@ -75,6 +77,8 @@ function OvaleCooldown:GetGCD(spellId)
 		if si.haste then
 			if si.haste == "melee" then
 				cd = cd / OvalePaperDoll:GetMeleeHasteMultiplier()
+			elseif si.haste == "ranged" then
+				cd = cd / OvalePaperDoll:GetRangedHasteMultiplier()
 			elseif si.haste == "spell" then
 				cd = cd / OvalePaperDoll:GetSpellHasteMultiplier()
 			end