Skip to content

Commit 45ad696

Browse files
committed
Fixed LUA error if group buff was not learned yet.
1 parent 6f5a2fa commit 45ad696

6 files changed

Lines changed: 13 additions & 7 deletions

File tree

Buffalo/Buffalo-Classic.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Title: Buffalo - One-button buffing
22
## Notes: Smart addon to buff party / raid members
3-
## Version: 0.5.2
3+
## Version: 0.5.3
44
## Author: Mimma @ <EU-Pyrewood Village>
55
## Interface: 11403
66
## SavedVariables: Buffalo_Options

Buffalo/Buffalo-Wrath.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Title: Buffalo - One-button buffing
22
## Notes: Smart addon to buff party / raid members
3-
## Version: 0.5.2
3+
## Version: 0.5.3
44
## Author: Mimma @ <EU-Pyrewood Village>
55
## Interface: 30400
66
## SavedVariables: Buffalo_Options

Buffalo/Buffalo.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,10 +1186,12 @@ local function Buffalo_ScanRaid()
11861186
-- If this is a group buff, and enough people are missing it, use the big one instead!
11871187
if buffInfo["PARENT"] and buffMissingCounter >= CONFIG_GroupBuffThreshold then
11881188
local parentBuffInfo = BUFF_MATRIX[buffInfo["PARENT"]];
1189-
local bufferUnitid = MissingBuffsInGroup[1][1];
1190-
missingBuffIndex = missingBuffIndex + 1;
1191-
local priority = parentBuffInfo["PRIORITY"] + (buffMissingCounter / groupMemberCounter * 5) + groupMemberCounter;
1192-
MissingBuffs[missingBuffIndex] = { bufferUnitid, buffInfo["PARENT"], parentBuffInfo["ICONID"], priority, 0 };
1189+
if parentBuffInfo then
1190+
local bufferUnitid = MissingBuffsInGroup[1][1];
1191+
missingBuffIndex = missingBuffIndex + 1;
1192+
local priority = parentBuffInfo["PRIORITY"] + (buffMissingCounter / groupMemberCounter * 5) + groupMemberCounter;
1193+
MissingBuffs[missingBuffIndex] = { bufferUnitid, buffInfo["PARENT"], parentBuffInfo["ICONID"], priority, 0 };
1194+
end;
11931195
else
11941196
-- Use single target buffing:
11951197
for missingIndex = 1, buffMissingCounter, 1 do

Buffalo/Buffalo.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Title: Buffalo - One-button buffing
22
## Notes: Smart addon to buff party / raid members
3-
## Version: 0.5.2
3+
## Version: 0.5.3
44
## Author: Mimma @ <EU-Pyrewood Village>
55
## Interface: 30400
66
## SavedVariables: Buffalo_Options

Buffalo/ReadMe.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ Priest PowerWordFortitude 53
8181

8282
Version history
8383
---------------
84+
Version 0.5.3
85+
* Bugfix: Repeating LUA errors when a parent group buff had not been learned yet.
86+
87+
8488
Version 0.5.2
8589
* Bugfix: Molten Armor (mage) buff caused Classic Era version to fail.
8690

Releases/Buffalo-0.5.3.zip

35.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)