Quantcast

Fix caster GUID of state aura copied from true aura.

Johnny C. Lam [12-09-13 - 02:14]
Fix caster GUID of state aura copied from true aura.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1246 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 0203402..ead75ac 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -831,7 +831,7 @@ statePrototype.ApplySpellAuras = function(state, spellId, guid, startCast, endCa
 					aura = auraFound
 				else
 					-- Add an aura in the simulator and copy the existing aura information over.
-					aura = state:AddAuraToGUID(guid, auraId, self_guid, filter, 0, math.huge)
+					aura = state:AddAuraToGUID(guid, auraId, auraFound.source, filter, 0, math.huge)
 					for k, v in pairs(auraFound) do
 						aura[k] = v
 					end