Skip to content

Instantly share code, notes, and snippets.

@Langmans
Created May 15, 2013 22:15
Show Gist options
  • Save Langmans/5587866 to your computer and use it in GitHub Desktop.
Save Langmans/5587866 to your computer and use it in GitHub Desktop.
bloodyscreen WTF vararg tables
--This function handles the used game events.
function BS_OnEvent(self, event, ...)
local args = {...};
if (event == "ADDON_LOADED") then
if (args[1] == "BloodyScreen") then
BS_Init();
end
end
if ((event == "UNIT_COMBO_POINTS") and (BS_BloodBehaviour == 1)) then
if (((BS_EnableOnPVP) and (UnitIsPlayer("target"))) or ((BS_EnableOnPVE) and (not UnitIsPlayer("target")))) then BS_AddSplatters(args); end
end
if ((event == "COMBAT_LOG_EVENT_UNFILTERED") and (BS_BloodBehaviour > 1)) then
if (((BS_EnableOnPVP) and (UnitIsPlayer("target"))) or ((BS_EnableOnPVE) and (not UnitIsPlayer("target")))) then BS_AddSplatters(args); end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment