from retail

This commit is contained in:
NoM0Re
2025-01-17 15:35:11 +01:00
parent db45573d1c
commit efa2dae58a
16 changed files with 122 additions and 63 deletions
+40
View File
@@ -1383,6 +1383,9 @@ Private.event_prototypes = {
AddUnitEventForEvents(result, unit, "UNIT_NAME_UPDATE")
AddUnitEventForEvents(result, unit, "UNIT_FLAGS")
AddUnitEventForEvents(result, unit, "PLAYER_FLAGS_CHANGED")
if trigger.use_inRange then
AddUnitEventForEvents(result, unit, "UNIT_IN_RANGE_UPDATE")
end
return result;
end,
internal_events = function(trigger)
@@ -1548,6 +1551,16 @@ Private.event_prototypes = {
end,
init = "UnitIsConnected(unit)"
},
{
name = "inRange",
display = L["In Range"],
type = "toggle",
width = WeakAuras.doubleWidth,
enable = function(trigger)
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
end,
init = "UnitInRange(unit)"
},
{
name = "hostility",
display = L["Hostility"],
@@ -1790,6 +1803,9 @@ Private.event_prototypes = {
if trigger.use_ignoreDead or trigger.use_ignoreDisconnected then
AddUnitEventForEvents(result, unit, "UNIT_FLAGS")
end
if trigger.use_inRange then
AddUnitEventForEvents(result, unit, "UNIT_IN_RANGE_UPDATE")
end
return result
end,
internal_events = function(trigger)
@@ -2049,6 +2065,16 @@ Private.event_prototypes = {
end,
init = "UnitIsConnected(unit)"
},
{
name = "inRange",
display = L["In Range"],
type = "toggle",
width = WeakAuras.doubleWidth,
enable = function(trigger)
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
end,
init = "UnitInRange(unit)"
},
{
name = "nameplateType",
display = L["Nameplate Type"],
@@ -2099,6 +2125,9 @@ Private.event_prototypes = {
end
tinsert(result.events, "FRAME_UPDATE")
end
if trigger.use_inRange then
AddUnitEventForEvents(result, unit, "UNIT_IN_RANGE_UPDATE")
end
return result;
end,
internal_events = function(trigger)
@@ -2389,6 +2418,16 @@ Private.event_prototypes = {
end,
init = "UnitIsConnected(unit)"
},
{
name = "inRange",
display = L["In Range"],
type = "toggle",
width = WeakAuras.doubleWidth,
enable = function(trigger)
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
end,
init = "UnitInRange(unit)"
},
{
name = "nameplateType",
display = L["Nameplate Type"],
@@ -6558,6 +6597,7 @@ Private.event_prototypes = {
if trigger.use_instance_difficulty ~= nil
or trigger.use_instance_size ~= nil
or trigger.use_pvpflagged ~= nil
then
tinsert(events, "WA_DELAYED_PLAYER_ENTERING_WORLD")
end