Purge logic

notifications
4n0n 2 years ago
parent 26d1d2430b
commit bd174b4b06
  1. 50
      scripts/restodruid.lua

@ -174,34 +174,34 @@ local DispelTarget = Bastion.UnitManager:CreateCustomUnit('rejuv', function(unit
return lowest return lowest
end) end)
-- local PurgeTarget = Bastion.UnitManager:CreateCustomUnit('purge', function(unit) local PurgeTarget = Bastion.UnitManager:CreateCustomUnit('purge', function(unit)
-- local purge = nil local purge = nil
-- Bastion.UnitManager:EnumEnemies(function(unit) Bastion.UnitManager:EnumEnemies(function(unit)
-- if unit:IsDead() then if unit:IsDead() then
-- return false return false
-- end end
-- if not Player:CanSee(unit) then if not Player:CanSee(unit) then
-- return false return false
-- end end
-- if Player:GetDistance(unit) > 40 then if Player:GetDistance(unit) > 40 then
-- return false return false
-- end end
-- if not unit:IsDead() and Player:CanSee(unit) and if not unit:IsDead() and Player:CanSee(unit) and
-- unit:GetAuras():HasAnyStealableAura() then unit:GetAuras():HasAnyStealableAura() then
-- purge = unit purge = unit
-- end end
-- end) end)
-- if purge == nil then if purge == nil then
-- purge = None purge = None
-- end end
-- return purge return purge
-- end) end)
local Tank = Bastion.UnitManager:CreateCustomUnit('tank', function(unit) local Tank = Bastion.UnitManager:CreateCustomUnit('tank', function(unit)
local tank = nil local tank = nil
@ -359,9 +359,9 @@ DefaultAPL:AddSpell(
DefaultAPL:AddSpell( DefaultAPL:AddSpell(
Soothe:CastableIf(function(self) Soothe:CastableIf(function(self)
return Target:Exists() and self:IsKnownAndUsable() and not Player:IsCastingOrChanneling() and return PurgeTarget:Exists() and self:IsKnownAndUsable() and not Player:IsCastingOrChanneling() and
self:IsInRange(Target) and Target:GetAuras():HasAnyStealableAura() self:IsInRange(PurgeTarget) and PurgeTarget:GetAuras():HasAnyStealableAura()
end):SetTarget(Target) end):SetTarget(PurgeTarget)
) )
DefaultAPL:AddSpell( DefaultAPL:AddSpell(

Loading…
Cancel
Save