mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-10-27 06:00:54 +00:00
Chanes: add test mode bars and options for UI testing and layout configuration
This commit is contained in:
@@ -567,10 +567,14 @@ end
|
||||
|
||||
-- HealBot_GetHealSpell: Resolves spell rank based on health deficit.
|
||||
function HealBot_GetHealSpell(unit, pattern)
|
||||
if (not UnitName(unit)) then return nil end;
|
||||
if not string.find(unit, "^Test") then
|
||||
if (not UnitName(unit)) then return nil end;
|
||||
end
|
||||
if not pattern then return nil end;
|
||||
if UnitOnTaxi("player") then return nil end;
|
||||
if HealBot_Config.ProtectPvP == 1 and UnitIsPVP(unit) and not UnitIsPVP("player") then return nil end
|
||||
if not string.find(unit, "^Test") then
|
||||
if HealBot_Config.ProtectPvP == 1 and UnitIsPVP(unit) and not UnitIsPVP("player") then return nil end
|
||||
end
|
||||
if HealBot_UnitClass("player") == "DRUID" then
|
||||
if HealBot_GetShapeshiftForm() and HealBot_Config.AutoUnshift ~= 1 then return nil end;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user