View Single Post
03-10-15, 03:15 PM   #6
Kraiven
A Deviate Faerie Dragon
 
Kraiven's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2015
Posts: 10
Thank you that worked, but of course I ran into another problem. For some reason the addon fires in the proving grounds for no reason. I'm assuming its based under a scenario type, but the api listed does not return the correct info:

name, type, difficulty, difficultyName, maxPlayers, playerDifficulty, isDynamicInstance, mapID, instanceGroupSize = GetInstanceInfo()

I tried using many different variations and even instanceType but still can't tell if the player is is the proving grounds or not. Can't find any info on proving grounds being "not" a scenario so I have to assume this should work.
Code:
if event == "PLAYER_ENTERING_WORLD" and isInstance then 
	local inInstanceGroup = IsInGroup(LE_PARTY_CATEGORY_INSTANCE)
	local name, type, difficulty, difficultyName, maxPlayers, playerDifficulty, isDynamicInstance, mapID, instanceGroupSize = GetInstanceInfo()
	if inInstanceGroup and type ~= scenario then
   -- do my code but only if not in a scenario
  Reply With Quote