Quantcast

Remove incorrect comment.

Johnny C. Lam [11-15-13 - 19:59]
Remove incorrect comment.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1182 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCooldown.lua
diff --git a/OvaleCooldown.lua b/OvaleCooldown.lua
index 01ba924..f5167a6 100644
--- a/OvaleCooldown.lua
+++ b/OvaleCooldown.lua
@@ -121,9 +121,7 @@ function OvaleCooldown:ApplySpellAfterCast(state, spellId, startCast, endCast, n
 					local start, ending, stacks = state:GetAura("player", si.buffnocd)
 					if start and stacks and stacks > 0 then
 						Ovale:Logf("buffnocd stacks = %s, start = %s, ending = %s, startCast = %f", stacks, start, ending, startCast)
-						-- XXX Shouldn't this be (not ending or ending > endCast)?
-						-- XXX The spellcast needs to finish before the buff expires.
-						if start <= startCast and (not ending or ending > startCast) then
+						if start <= startCast and startCast < ending then
 							cd.duration = 0
 						end
 					end