Thread: Quick Question:
View Single Post
02-29-12, 06:19 PM   #10
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you add PLAYER_ENTERING_WORLD, you should also change the OnEvent script to read:
Code:
if UnitAffectingCombat("player") then
	-- in combat
	Skada:SetActive(true)
else
	-- not in combat
	Skada:SetActive(false)
end
  Reply With Quote