Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
funkydude committed May 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5b3dc27 commit cf41cd2
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CastleNathria/HungeringDestroyer.lua
Original file line number Diff line number Diff line change
@@ -163,7 +163,7 @@ local function RepeatingChatMessages()
elseif miasmaOnMe and mod:GetOption("custom_on_repeating_yell_miasma") then -- Repeat Health instead
local currentHealthPercent = math.floor(mod:GetHealth("player"))
if currentHealthPercent < 75 then -- Only let players know when you are below 75%
local myIcon = GetRaidTargetIndex("player")
local myIcon = mod:GetIcon("player")
local msg = myIcon and ("{rt%d}%d%%"):format(myIcon, currentHealthPercent) or ("%d%%"):format(currentHealthPercent)
mod:Yell(false, msg, true)
end
2 changes: 1 addition & 1 deletion CastleNathria/InervaDarkvein.lua
Original file line number Diff line number Diff line change
@@ -393,7 +393,7 @@ do
end

function mod:ConcentratedAnimaRemoved(args)
tDeleteItem(proxList, args.destName)
self:DeleteFromTable(proxList, args.destName)
if self:Me(args.destGUID) then
isOnMe = nil
self:CancelSayCountdown(332664)
8 changes: 4 additions & 4 deletions CastleNathria/SunKingsSalvation.lua
Original file line number Diff line number Diff line change
@@ -302,15 +302,15 @@ function mod:SunKingsSalvationMarker(_, unit, guid)
end

function mod:EssenceOverflow(args)
tDeleteItem(iconsInUse, args.sourceGUID)
self:DeleteFromTable(iconsInUse, args.sourceGUID)
end

function mod:EssenceFontDeath(args)
tDeleteItem(iconsInUse, args.destGUID)
self:DeleteFromTable(iconsInUse, args.destGUID)
end

function mod:VileOccultistDeath(args)
tDeleteItem(iconsInUse, args.destGUID)
self:DeleteFromTable(iconsInUse, args.destGUID)
end

-- Shade of Kael'thas
@@ -537,7 +537,7 @@ do
end

function mod:GreaterCastigationRemoved(args)
tDeleteItem(proxList, args.destName)
self:DeleteFromTable(proxList, args.destName)
if self:Me(args.destGUID) then
isOnMe = nil
self:CloseProximity(args.spellId)
10 changes: 5 additions & 5 deletions SanctumOfDomination/SylvanasWindrunner.lua
Original file line number Diff line number Diff line change
@@ -369,7 +369,7 @@ end
function mod:DarkCommunion(args)
local unit = self:GetUnitIdByGUID(args.sourceGUID)
if unit then
if IsItemInRange(116139, unit) then -- 50yd
if self:UnitWithinRange(unit, 60) then
self:Message(args.spellId, "orange", CL.orbs)
self:PlaySound(args.spellId, "long")
self:CDBar(args.spellId, 16.5, CL.orbs)
@@ -380,7 +380,7 @@ end
function mod:Filth(args)
local unit = self:GetUnitIdByGUID(args.sourceGUID)
if unit then
if IsItemInRange(116139, unit) then -- 50yd
if self:UnitWithinRange(unit, 60) then
self:Message(351591, "purple", CL.casting:format(args.spellName))
self:PlaySound(351591, "alarm")
self:CDBar(351591, 13.5)
@@ -401,7 +401,7 @@ do
playerList = {}
local unit = self:GetUnitIdByGUID(args.sourceGUID)
if unit then
if IsItemInRange(116139, unit) then -- 50yd
if self:UnitWithinRange(unit, 60) then
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 16)
end
@@ -1011,7 +1011,7 @@ function mod:SummonDecrepitOrbs(args)
if self:Mythic() then
local unit = self:GetUnitIdByGUID(args.sourceGUID)
if unit then
if IsItemInRange(116139, unit) then -- 50yd
if self:UnitWithinRange(unit, 60) then
self:Message(args.spellId, "orange", CL.orbs)
self:PlaySound(args.spellId, "long")
self:Bar(args.spellId, 16, CL.orbs)
@@ -1035,7 +1035,7 @@ function mod:FuryApplied(args)
if self:Mythic() then
local unit = self:GetUnitIdByGUID(args.sourceGUID)
if unit then
if IsItemInRange(116139, unit) then -- 50yd
if self:UnitWithinRange(unit, 60) then
local amount = args.amount or 1
if amount % 3 == 0 or amount > 10 then
self:StackMessage(args.spellId, "purple", args.destName, args.amount, 0)

0 comments on commit cf41cd2

Please sign in to comment.