mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
Compare commits
5 Commits
d36ad994ea
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 178d1184a3 | |||
| f1b7e3950f | |||
| faf040997e | |||
| 4c9f50770a | |||
| ed11046eda |
+1
-1
@@ -1,6 +1,6 @@
|
||||
## Interface: 11200
|
||||
## Title: HealBotBlue
|
||||
## Version: 1.6.0
|
||||
## Version: 1.6.2
|
||||
## Author: Bluewhale
|
||||
## Notes: Adds panel with skinable bars for healing and decursive
|
||||
## SavedVariablesPerCharacter: HealBot_Config
|
||||
|
||||
@@ -608,47 +608,47 @@ function HealBot_InitGetSpellData(spell, id, class)
|
||||
|
||||
HealBot_ScanTooltip:SetOwner(HealBot_ScanTooltip, "ANCHOR_NONE")
|
||||
HealBot_ScanTooltip:SetSpell(id, BOOKTYPE_SPELL);
|
||||
tmpText = getglobal("HealBot_ScanTooltipTextLeft2");
|
||||
if (tmpText:GetText()) then
|
||||
line = tmpText:GetText();
|
||||
tmpTest, tmpTest, _mana = string.find(line, HEALBOT_TOOLTIP_MANA);
|
||||
else
|
||||
HealBot_Report_Error("================================");
|
||||
HealBot_Report_Error("ERROR: HealBot_ScanTooltip is lost");
|
||||
HealBot_Report_Error("ERROR: If BonusScanner is used, try disabling BonusScanner");
|
||||
end
|
||||
|
||||
tmpText = getglobal("HealBot_ScanTooltipTextRight2");
|
||||
if (tmpText:GetText()) then
|
||||
line = tmpText:GetText();
|
||||
tmpTest, tmpTest, _range = string.find(line, HEALBOT_TOOLTIP_RANGE);
|
||||
else
|
||||
HealBot_Report_Error("================================");
|
||||
HealBot_Report_Error("ERROR: HealBot_ScanTooltip is lost");
|
||||
HealBot_Report_Error("ERROR: If BonusScanner is used, try disabling BonusScanner");
|
||||
end
|
||||
|
||||
tmpText = getglobal("HealBot_ScanTooltipTextLeft3");
|
||||
_cast = nil;
|
||||
if (tmpText:GetText()) then
|
||||
line = tmpText:GetText();
|
||||
if (line == HEALBOT_TOOLTIP_INSTANT_CAST) then
|
||||
_mana = 0;
|
||||
_range = 40;
|
||||
_cast = 0;
|
||||
elseif line == HEALBOT_TOOLTIP_CHANNELED then
|
||||
line = nil;
|
||||
|
||||
for lineNum = 2, 6 do
|
||||
local lText = getglobal("HealBot_ScanTooltipTextLeft"..lineNum);
|
||||
if lText and lText:IsVisible() and lText:GetText() then
|
||||
local txt = lText:GetText();
|
||||
local t1, t2, match;
|
||||
t1, t2, match = string.find(txt, HEALBOT_TOOLTIP_MANA);
|
||||
if match then _mana = match; end
|
||||
|
||||
if txt == HEALBOT_TOOLTIP_INSTANT_CAST or txt == "Instant" then
|
||||
_cast = 0;
|
||||
elseif txt == HEALBOT_TOOLTIP_CHANNELED then
|
||||
_cast = 0;
|
||||
elseif (tmpText) then
|
||||
tmpTest, tmpTest, _cast = string.find(line, HEALBOT_TOOLTIP_CAST_TIME);
|
||||
end
|
||||
else
|
||||
HealBot_Report_Error("================================");
|
||||
HealBot_Report_Error("ERROR: HealBot_ScanTooltip is lost");
|
||||
HealBot_Report_Error("ERROR: If BonusScanner is used, try disabling BonusScanner");
|
||||
t1, t2, match = string.find(txt, HEALBOT_TOOLTIP_CAST_TIME);
|
||||
if match then _cast = match; end
|
||||
end
|
||||
|
||||
t1, t2, match = string.find(txt, HEALBOT_TOOLTIP_RANGE);
|
||||
if match then _range = match; end
|
||||
|
||||
if not string.find(txt, HEALBOT_TOOLTIP_MANA) and txt ~= HEALBOT_TOOLTIP_INSTANT_CAST and txt ~= "Instant" and txt ~= HEALBOT_TOOLTIP_CHANNELED and not string.find(txt, HEALBOT_TOOLTIP_CAST_TIME) and not string.find(txt, HEALBOT_TOOLTIP_RANGE) then
|
||||
if not line then line = txt; end
|
||||
end
|
||||
end
|
||||
|
||||
local rText = getglobal("HealBot_ScanTooltipTextRight"..lineNum);
|
||||
if rText and rText:IsVisible() and rText:GetText() then
|
||||
local txt = rText:GetText();
|
||||
local t1, t2, match;
|
||||
t1, t2, match = string.find(txt, HEALBOT_TOOLTIP_RANGE);
|
||||
if match then _range = match; end
|
||||
end
|
||||
end
|
||||
|
||||
tmpText = getglobal("HealBot_ScanTooltipTextLeft4");
|
||||
tmpTest = nil;
|
||||
if (tmpText:GetText()) then
|
||||
line = tmpText:GetText();
|
||||
if line then
|
||||
if class == "PRIEST" then
|
||||
if string.sub(spell, 1, 14) == string.sub(HEALBOT_POWER_WORD_SHIELD, 1, 14) then
|
||||
tmpTest, tmpTest, _HealsMin, _shield = string.find(line, HEALBOT_SPELL_PATTERN_SHIELD);
|
||||
|
||||
@@ -635,6 +635,9 @@ function HealBot_Action_PartyChanged()
|
||||
else
|
||||
for _, unit in ipairs(HealBot_Action_HealGroup) do
|
||||
if not HealBot_Action_UnitButtons[unit] and HealBot_MayHeal(unit) then
|
||||
local name = UnitName(unit) or "not known"
|
||||
local class = UnitClass(unit) or "not known"
|
||||
local subgroup = 1
|
||||
if HealBot_Config.ExtraOrder == 1 then
|
||||
order[unit] = name;
|
||||
elseif HealBot_Config.ExtraOrder == 2 then
|
||||
@@ -733,6 +736,9 @@ function HealBot_Action_PartyChanged()
|
||||
else
|
||||
for _, unit in ipairs(HealBot_Action_HealGroup) do
|
||||
if not HealBot_Action_UnitButtons[unit] and HealBot_MayHeal(unit) then
|
||||
local name = UnitName(unit) or "not known"
|
||||
local class = UnitClass(unit) or "not known"
|
||||
local subgroup = 1
|
||||
if HealBot_Config.ExtraOrder == 1 then
|
||||
order[unit] = name;
|
||||
elseif HealBot_Config.ExtraOrder == 2 then
|
||||
@@ -962,7 +968,6 @@ function HealBot_Action_PartyChanged()
|
||||
if HealBot_Config.HideParty == 1 and HidePartyFrame then
|
||||
HidePartyFrame();
|
||||
end
|
||||
end
|
||||
HealBot_Action_RefreshButtons();
|
||||
HealBot_Action_ShowFrame();
|
||||
end
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
Druid:
|
||||
Name - Rank - Effect
|
||||
Genesis - 1 - increase damage and healing of periodic spells by 5%
|
||||
Genesis - 2 - increase damage and healing of periodic spells by 10%
|
||||
Genesis - 3 -increase damage and healing of periodic spells by 15%
|
||||
|
||||
Gift of Nature - 1- Increases effectivenes of all healing spells by 2%
|
||||
Gift of Nature - 2- Increases effectivenes of all healing spells by 4%
|
||||
Gift of Nature - 3- Increases effectivenes of all healing spells by 6%
|
||||
Gift of Nature - 4- Increases effectivenes of all healing spells by 8%
|
||||
Gift of Nature - 5- Increases effectivenes of all healing spells by 10%
|
||||
|
||||
Preservation - 1 - Increases the periodic healing of Regrowth by 10% if target is affected by Rejuvenation
|
||||
Preservation - 2 - Increases the periodic healing of Regrowth by 20% if target is affected by Rejuvenation
|
||||
Preservation - 3 - Increases the periodic healing of Regrowth by 30% if target is affected by Rejuvenation
|
||||
|
||||
Paladin:
|
||||
|
||||
Healing Light - 1 - Increases the amount of healed by Holy Light, Flash of Light and Holy Shock by 4%
|
||||
Healing Light - 2 - Increases the amount of healed by Holy Light, Flash of Light and Holy Shock by 8%
|
||||
Healing Light - 3 - Increases the amount of healed by Holy Light, Flash of Light and Holy Shock by 12%
|
||||
|
||||
Ironclad - 1 - Improves healing done by 1% of current armour from items
|
||||
Ironclad - 2 - Improves healing done by 2% of current armour from items
|
||||
|
||||
Priest:
|
||||
|
||||
Improved Renew - 1 - Improves amount healed by renew by 5%
|
||||
Improved Renew - 2 - Improves amount healed by renew by 10%
|
||||
Improved Renew - 3 - Improves amount healed by renew by 15%
|
||||
|
||||
Spiritual Healing - 1 - Improves amount healed by all healing spells by 6%
|
||||
Spiritual Healing - 2 - Improves amount healed by all healing spells by 12%
|
||||
Spiritual Healing - 3 - Improves amount healed by all healing spells by 18%
|
||||
Spiritual Healing - 4 - Improves amount healed by all healing spells by 24%
|
||||
Spiritual Healing - 5 - Improves amount healed by all healing spells by 30%
|
||||
|
||||
Shaman:
|
||||
|
||||
none
|
||||
Binary file not shown.
@@ -1,23 +0,0 @@
|
||||
import re
|
||||
|
||||
with open('HealBot_Action.xml', 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
buttons_42_50 = '\n'.join([f' <Button name=\"HealBot_Action_HealUnit{i}\" inherits=\"HealingButtonTemplate\" text=\"Unit not set\"/>' for i in range(42, 51)])
|
||||
buttons_61_100 = '\n'.join([f' <Button name=\"HealBot_Action_HealUnit{i}\" inherits=\"HealingButtonTemplate2\" text=\"Unit not set\"/>' for i in range(61, 101)])
|
||||
|
||||
content = re.sub(
|
||||
r'(<Button name=\"HealBot_Action_HealUnit41\" [^\>]+>\n)',
|
||||
r'\g<1>' + buttons_42_50 + '\n',
|
||||
content
|
||||
)
|
||||
|
||||
content = re.sub(
|
||||
r'(<Button name=\"HealBot_Action_HealUnit60\" [^\>]+>\n)',
|
||||
r'\g<1>' + buttons_61_100 + '\n',
|
||||
content
|
||||
)
|
||||
|
||||
with open('HealBot_Action.xml', 'w') as f:
|
||||
f.write(content)
|
||||
print('Updated HealBot_Action.xml')
|
||||
Reference in New Issue
Block a user