Skip to content

Commit 86565e3

Browse files
InfusOnWoWStanzilla
authored andcommitted
Fix Add Property for multi selection
1 parent 48bdf5f commit 86565e3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

CHANGELOG.md

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

3-
## [2.5.7-13-g685358e](https://github.com/WeakAuras/WeakAuras2/tree/685358effe5a71d1ef82b61fab2bde7ea3b3360a) (2018-03-13)
3+
## [2.5.8](https://github.com/WeakAuras/WeakAuras2/tree/2.5.8) (2018-03-16)
44

5-
[Full Changelog](https://github.com/WeakAuras/WeakAuras2/compare/2.5.7...685358effe5a71d1ef82b61fab2bde7ea3b3360a)
5+
[Full Changelog](https://github.com/WeakAuras/WeakAuras2/compare/2.5.7...2.5.8)
66

77
Benjamin Staneck (2):
88

99
- fix the translation script for PRs
1010
- adjust range check trigger text a bit
1111

12-
Infus (11):
12+
Infus (14):
1313

14+
- Fix Add Property for multi selection
15+
- Add a SetTexture function to Progress Textures
16+
- Implement TODOs
1417
- Fix canceling "Apply Template" picks the new option
1518
- Add a bit of space between Choose Trigger and "Add"
1619
- Fix text replacement for Texture auras

WeakAurasOptions/ConditionOptions.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,10 +1236,10 @@ local function addControlsForCondition(args, order, data, conditionVariable, con
12361236
order = order,
12371237
func = function()
12381238
if (data.controlledChildren) then
1239-
for _, id in ipairs(data.controlledChildren) do
1239+
for id, reference in pairs(conditions[i].check.references) do
12401240
local auradata = WeakAuras.GetData(id);
1241-
auradata[conditionVariable][i].changes = auradata[conditionVariable][i].changes or {};
1242-
auradata[conditionVariable][i].changes[#auradata[conditionVariable][i].changes + 1] = {};
1241+
auradata[conditionVariable][reference.conditionIndex].changes = auradata[conditionVariable][reference.conditionIndex].changes or {}
1242+
tinsert(auradata[conditionVariable][reference.conditionIndex].changes, {})
12431243
WeakAuras.Add(auradata);
12441244
end
12451245
WeakAuras.ReloadTriggerOptions(data);

0 commit comments

Comments
 (0)