Add possibility of loading if in instance or in combat.
capoferro opened this issue ยท 1 comments
Currently, Load triggers are and
conditionals. I can tell something to load if I am both in an instance and if I'm in combat, but it's common to want to load something both if I am in an instance or if I'm in combat.
The current workaround for this is to add a Custom Check function to check if in instance or
if in Combat and set the Alpha % accordingly.
The custom check I currently use is this (or the inverse):
function()
-- Snippet: Is in instance
local isInInstance, instanceType = IsInInstance()
if(isInInstance == nil) then
return false;
elseif(instanceType == 'party' or instanceType == 'raid') then
return true;
else
return false;
end
end