tdymel/ModifiedPowerAuras

AddOns conflict: ntmysFixLoadingTimes

Closed this issue · 2 comments

wowscrnshot_081917_142351

106: attempt to call a method 'GetScript' (a nil value)

function ntmysFLT_KillOnEvents()
	ntmysFLT_AllEvents = 0;
	ntmysFLT_PassedEvents = 0;
	local f = EnumerateFrames();
	local OnEvent;
	while f do
		OnEvent = f:GetScript("OnEvent");
		if(OnEvent) then
			f.ntmysFLT_OnEvent = OnEvent;
			-- some events still need to be checked
			f:SetScript("OnEvent", function()
					if(event == "PLAYER_ENTERING_WORLD" or
						event == "PLAYER_TARGET_CHANGED" or
						event == "PLAYER_LOGOUT" or
						string.sub(event,0,4) == "CHAT") then
						this.ntmysFLT_OnEvent();
						ntmysFLT_PassedEvents = ntmysFLT_PassedEvents +1;
					end
					ntmysFLT_AllEvents = ntmysFLT_AllEvents +1;
				end
			);
		end
		f = EnumerateFrames(f);
	end	
end

Any chances of solving the problem? I believe the animation library is the problem.

Yep, I do know a work around for it. Will fix it after my exams!

I cant reproduce the error but I added a dummy function which returns nil