Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Waini4 committed Jun 13, 2024
2 parents a12ed06 + 33c53fe commit 8381b93
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions DBM-Core/.Libs/SpecializedAbsorbs-1.0/SpecializedAbsorbs-1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
------------------------------------------------------------------------
local _,ns = ...
local Compat = ns.Compat
local MAJOR, MINOR = "SpecializedAbsorbs-1.0", 18
local MAJOR, MINOR = "SpecializedAbsorbs-1.0", 19
local lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
local Core
Expand Down Expand Up @@ -1812,6 +1812,7 @@ local function druid_SavageDefense_Create(srcGUID, srcName, dstGUID, dstName, sp
end
end


local function druid_SavageDefense_Hit(effectEntry, absorbedRemaining, overkill, spellschool)
-- TODO: what happens to mixed school attacks?
druidAbsorb = 0
Expand All @@ -1821,18 +1822,16 @@ local function druid_SavageDefense_Hit(effectEntry, absorbedRemaining, overkill,
end
return 0, true
end

local function druid_t6_SpellAbsorb_Create(srcGUID, srcName, dstGUID, dstName, spellid, destEffects)
local ap, _, quality = UnitStats(srcGUID, 0.0);
-- if privateScaling["4dtRaid5"] == 1 then
druidSpellAbsorb = druidSpellAbsorb + floor(ap * 0.25)
if druidSpellAbsorb > 50000 then
druidSpellAbsorb = 50000
end
return druidSpellAbsorb, quality;
-- else
-- return floor(ap * 0.25), quality;
-- end
druidSpellAbsorb = floor(ap * 0.25)
if druidSpellAbsorb > 50000 then
druidSpellAbsorb = 50000
end
return druidSpellAbsorb, quality;
end

local function druid_t6_SpellHit(effectEntry, absorbedRemaining, overkill, spellschool)
druidSpellAbsorb = 0
if spellschool ~= SCHOOL_MASK_PHYSICAL then
Expand All @@ -1859,12 +1858,7 @@ local function druid_ScanEquipment()
if IsEquippedItem(30229) or IsEquippedItem(103484) or IsEquippedItem(151678) then
n = n + 1
end
if n >= 4 then
privateScaling["4dtRaid5"] = 1
else
privateScaling["4dtRaid5"] = 0
end

privateScaling["4dtRaid5"] = n >= 4 and 1 or 0
end

local function druid_OnEquipmentChangedDelayed()
Expand Down

0 comments on commit 8381b93

Please sign in to comment.