from retail
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user