From f59ed71a1a65bf239d5c6ee35f39237389604da0 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Fri, 28 Sep 2012 00:58:58 +0000 Subject: [PATCH] Bound combo points at 5. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@576 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleState.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OvaleState.lua b/OvaleState.lua index 29934e9..2968f38 100644 --- a/OvaleState.lua +++ b/OvaleState.lua @@ -192,14 +192,17 @@ function OvaleState:AddSpellToStack(spellId, startCast, endCast, nextCast, nocd, self.state.combo = 0 else self.state.combo = self.state.combo + newSpellInfo.combo - if self:GetAura("player", 121471, true) then + if OvaleData.className == "ROGUE" and self:GetAura("player", 121471, true) then -- Shadow Blades generates an extra combo point. self.state.combo = self.state.combo + 1 end end - if self.state.combo<0 then + if self.state.combo < 0 then self.state.combo = 0 end + if self.state.combo > 5 then + self.state.combo = 5 + end end --Runes if newSpellInfo.frost then -- 1.7.9.5