From 99433b73fced5494452e6c2021f14982b0cf2ebc Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Fri, 12 Jun 2020 20:38:13 +0300 Subject: [PATCH] added Combo Points prototype #18 --- WeakAuras/Prototypes.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index fd922c8..52d43ed 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -917,6 +917,33 @@ local unitHelperFunctions = { } WeakAuras.event_prototypes = { + ["Combo Points"] = { + type = "status", + events = { + ["events"] = { + "UNIT_COMBO_POINTS", + "PLAYER_TARGET_CHANGED", + "PLAYER_FOCUS_CHANGED" + } + }, + force_events = "UNIT_COMBO_POINTS", + name = L["Combo Points"], + args = { + { + name = "combopoints", + display = L["Combo Points"], + type = "number", + init = "GetComboPoints(UnitInVehicle('player') and 'vehicle' or 'player', 'target')" + } + }, + durationFunc = function(trigger) + return GetComboPoints(UnitInVehicle("player") and "vehicle" or "player", "target"), 5, true; + end, + stacksFunc = function(trigger) + return GetComboPoints(UnitInVehicle("player") and "vehicle" or "player", "target"), true; + end, + automaticrequired = true + }, ["Unit Characteristics"] = { type = "status", events = function(trigger)