Created
May 15, 2013 22:15
-
-
Save Langmans/5587866 to your computer and use it in GitHub Desktop.
bloodyscreen WTF vararg tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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