Bound combo points at 5.
Johnny C. Lam [09-28-12 - 00:58]
Bound combo points at 5.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@576 d5049fe3-3747-40f7-a4b5-f36d6801af5f
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