Updates to resto druid rotation, add start of MythicPlusUtils

4n0n-patch-1
4n0n 2 years ago
parent 764655ea51
commit 85cbaffcc7
  1. 6
      scripts/restodruid.lua
  2. 46
      src/MythicPlusUtils/MythicPlusUtils.lua
  3. 14
      src/_bastion.lua

@ -338,7 +338,8 @@ DefaultAPL:AddSpell(
(
Player:GetAuras():FindMy(SoulOfTheForest):GetRemainingTime() <= 5 or
Lowest:GetPartyHPAround(30, 90) >= 2)) or
(Lowest:GetPartyHPAround(30, 90) >= 3 or Lowest:GetPartyHPAround(30, 85) >= 2)) and not Player:IsMoving()
(Lowest:GetPartyHPAround(30, 90) >= 3 or Lowest:GetPartyHPAround(30, 85) >= 2) or
Lowest:GetHP() <= 55) and not Player:IsMoving()
end):SetTarget(Lowest)
)
@ -348,7 +349,8 @@ DefaultAPL:AddSpell(
and Player:CanSee(Lowest) and Lowest:GetHP() < 75 and
(
NaturesSwiftness:GetTimeSinceLastCast() < 2 or Player:GetAuras():FindMy(NaturesSwiftness):IsUp() or
NaturesSwiftness:IsKnownAndUsable()) and not Player:IsMoving()
NaturesSwiftness:IsKnownAndUsable()) and not Player:IsMoving() and
not Player:GetAuras():FindMy(SoulOfTheForest):IsUp()
end):SetTarget(Lowest)
)

@ -0,0 +1,46 @@
local Tinkr, Bastion = ...
local MythicPlusUtils = {
debuffLogging = false,
random = ''
}
MythicPlusUtils.__index = MythicPlusUtils
function MythicPlusUtils:New()
local self = setmetatable({}, MythicPlusUtils)
self.random = math.random(1000000, 9999999)
Bastion.EventManager:RegisterWoWEvent('UNIT_AURA', function(unit, auras)
local u = Bastion.UnitManager[unit]
if not self.unit:IsUnit(unit) then
return
end
local addedAuras = auras.addedAuras
if #addedAuras > 0 then
for i = 1, #addedAuras do
local aura = Bastion.Aura:CreateFromUnitAuraInfo(addedAuras[i])
if not aura:IsBuff() then
WriteFile('bastion-MPlusDebuffs-' .. self.random .. '.lua', [[
AuraName: ]] .. aura:GetName() .. [[
AuraID: ]] .. aura:GetID() .. [[
]], true)
end
end
end
end)
return self
end
function MythicPlusUtils:ToggleDebuffLogging()
self.debuffLogging = not self.debuffLogging
end
function MythicPlusUtils:HasCriticalDispel(unit)
end

@ -33,6 +33,7 @@ Bastion.AuraTable = Bastion.require("AuraTable")
Bastion.Class = Bastion.require("Class")
Bastion.Timer = Bastion.require("Timer")
Bastion.CombatTimer = Bastion.Timer:New('combat')
Bastion.MythicPlusUtils = Bastion.require("MythicPlusUtils"):New()
Bastion.modules = {}
Bastion.Enabled = false
@ -142,6 +143,19 @@ Command:Register('module', 'Toggle a module on/off', function(args)
end
end)
Command:Register('mplus', 'Toggle m+ module on/off', function(args)
local cmd = args[2]
if cmd == 'debuffs' then
Bastion.MythicPlusUtils:ToggleDebuffLogging()
Bastion:Print("Debuff logging", Bastion.MythicPlusUtils.debuffLogging and "enabled" or "disabled")
return
end
Bastion:Print("[MythicPlusUtils] Unknown command")
Bastion:Print("Available commands:")
Bastion:Print("debuffs")
end)
local files = ListFiles("scripts/bastion/scripts")
for i = 1, #files do

Loading…
Cancel
Save