Quantcast

Fix ticket 193 by catching up to UnitAura() changes in MoP 5.1.

Johnny C. Lam [11-29-12 - 06:54]
Fix ticket 193 by catching up to UnitAura() changes in MoP 5.1.

UnitAura() has a different return value list in MoP 5.1.  The values
associated with an aura have been shifted one argument further down, i.e.,
from 14-15-16 to 15-16-17.  The 14th return value is now "isCastByPlayer".

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@646 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 5bd5acf..4aae0a8 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -209,7 +209,7 @@ function OvaleAura:UpdateAuras(unitId, unitGUID)
 	local canApplyAura, isBossDebuff, value1, value2, value3
 	while (true) do
 		name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId,
-			canApplyAura, isBossDebuff, value1, value2, value3 = UnitAura(unitId, i, mode)
+			canApplyAura, isBossDebuff, isCastByPlayer, value1, value2, value3 = UnitAura(unitId, i, mode)
 		if not name then
 			if mode == "HELPFUL" then
 				mode = "HARMFUL"