added ClassicAPI integration for enhanced distance checking, healing bonuses, and Focus unit support - overrides some functionality of other integrations

This commit is contained in:
Bluewhale1337
2026-08-18 18:11:54 +02:00
parent dc2f0ca089
commit d0e027ec12
9 changed files with 96 additions and 6 deletions
+6 -1
View File
@@ -564,7 +564,12 @@ function HealBot_SpiBonus(spell)
end
function HealBot_GetBonus()
local HealBonus = HealBot_BonusScanner:GetBonus() or 0;
local HealBonus = 0;
if HealBot_Integrations_ClassicAPI_Active and GetSpellBonusHealing then
HealBonus = GetSpellBonusHealing() or 0;
else
HealBonus = HealBot_BonusScanner:GetBonus() or 0;
end
if UnitClass("player") == "PALADIN" then
local ironRank = HealBot_GetTalentRank("Ironclad")
if ironRank > 0 then