Skip to content

Commit e708889

Browse files
InfusOnWoWStanzilla
authored andcommitted
Fix Range Check trigger
Actually listen to FRAME_UPDATE
1 parent a2368e5 commit e708889

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# WeakAuras 2
22

3-
## [2.5.6-24-g4e4d721](https://github.com/WeakAuras/WeakAuras2/tree/4e4d72140d0a00eae1ffe3b836391172b62bb2e9) (2018-02-17)
3+
## [2.5.6-25-gdcfc46c](/tree/dcfc46ca03275abd101c4dbf0e2bc67cd227cbd9) (2018-02-18)
44

5-
[Full Changelog](https://github.com/WeakAuras/WeakAuras2/compare/2.5.6...4e4d72140d0a00eae1ffe3b836391172b62bb2e9)
5+
[Full Changelog](/compare/2.5.6...dcfc46ca03275abd101c4dbf0e2bc67cd227cbd9)
66

77
Benjamin Staneck (14):
88

@@ -21,8 +21,9 @@ Benjamin Staneck (14):
2121
- use the same version string for the window title as for the LDB tooltip
2222
- fix LibRangecheck path
2323

24-
Infus (9):
24+
Infus (10):
2525

26+
- Fix Range Check trigger
2627
- Templates: Add KJ's burning wish to the correct specs
2728
- Combat Log Trigger: Fix SPELL_ENERGIZE
2829
- Add Allied Races to templates

WeakAuras/GenericTrigger.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,12 @@ function GenericTrigger.Add(data, region)
828828
end
829829

830830
for index, event in ipairs(trigger_events) do
831-
frame:RegisterEvent(event);
832-
aceEvents:RegisterMessage(event, HandleEvent, frame)
831+
if (event == "FRAME_UPDATE") then
832+
register_for_frame_updates = true;
833+
else
834+
frame:RegisterEvent(event);
835+
aceEvents:RegisterMessage(event, HandleEvent, frame)
836+
end
833837
end
834838
end
835839
end

WeakAuras/Prototypes.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424
local HBD = LibStub("HereBeDragons-1.0")
2525
local LibRangeCheck = LibStub("LibRangeCheck-2.0")
2626

27-
function WeakAuras:GetRange(unit)
27+
function WeakAuras.GetRange(unit)
2828
return LibRangeCheck:GetRange(unit);
2929
end
3030

@@ -4156,7 +4156,7 @@ WeakAuras.event_prototypes = {
41564156
trigger.unit = trigger.unit or "target";
41574157
local ret = [=[
41584158
local unit = [[%s]];
4159-
local min, max = WeakAuras:GetRange(unit);
4159+
local min, max = WeakAuras.GetRange(unit);
41604160
min = min or 0;
41614161
max = max or 999;
41624162
local triggerResult = true;

0 commit comments

Comments
 (0)