1. Carighan Maconar
  2. AutoGraph

Commits

KnThrak  committed e4fdc5a

* Fix detail when leaving WG raid

  • Participants
  • Parent commits ba3ef99
  • Branches default

Comments (0)

Files changed (2)

File AutoGraph.lua

View file
 
 function AutoGraph:WereZoned()
 	local _, instanceType = IsInInstance()
-	if (instanceType == "raid" or instanceType == "pvp") then
+	if (instanceType == "raid" or instanceType == "pvp" or GetRealZoneText() == "Wintergrasp") then
 		self:RegisterEvent("RAID_ROSTER_UPDATE","RaidUpdated")
 		self:RaidUpdated()
-	elseif (GetRealZoneText() == "Wintergrasp") then
-		SetCVar("particleDensity", 0.15)
-		self:UnregisterEvent("RAID_ROSTER_UPDATE")
 	else
 		self:UnregisterEvent("RAID_ROSTER_UPDATE")
 		self:RaidUpdated()

File AutoGraph.toc

View file
 ## Interface: 30200
 ## Title: AutoGraph
 ## Notes: Changes graphics detail depending on zone or instance
-## Version: 1.2
+## Version: 1.2.1
 ## Author: KnThrak
 ## OptionalDeps: Ace3
 ## X-eMail: carighan@gmail.com