WeakAuras.Mixin

This commit is contained in:
Bunny67
2020-09-06 11:33:12 +03:00
parent e9957582cb
commit 47e81f3d70
10 changed files with 48 additions and 30 deletions
+3 -3
View File
@@ -437,20 +437,20 @@ local function GetGenericTriggerOptions(data, triggernum)
}
if (triggerType == "custom") then
WeakAuras:Mixin(options, GetCustomTriggerOptions(data, triggernum, trigger));
WeakAuras.Mixin(options, GetCustomTriggerOptions(data, triggernum, trigger));
elseif (triggerType == "status" or triggerType == "event") then
local prototypeOptions;
local trigger, untrigger = data.triggers[triggernum].trigger, data.triggers[triggernum].untrigger;
if(WeakAuras.event_prototypes[trigger.event]) then
prototypeOptions = WeakAuras.ConstructOptions(WeakAuras.event_prototypes[trigger.event], data, 10, triggernum);
if (trigger.event == "Combat Log") then
WeakAuras:Mixin(prototypeOptions, combatLogOptions);
WeakAuras.Mixin(prototypeOptions, combatLogOptions);
end
else
print("|cFF8800FFWeakAuras|r: No prototype for", trigger.event);
end
if (prototypeOptions) then
WeakAuras:Mixin(options, prototypeOptions);
WeakAuras.Mixin(options, prototypeOptions);
end
end