Skip to content

Commit

Permalink
release fix dwarf racial for normal dwarfs too
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Nov 23, 2023
1 parent 92fda5b commit 8c6a8eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sArena.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function sArenaFrameMixin:OnEvent(event, eventUnit, arg1, arg2 )
if (eventUnit and eventUnit == unit) then
if (event == "UNIT_SPELLCAST_SUCCEEDED") then
if DLAPI then DLAPI.DebugLog("UNIT_SPELLCAST_SUCCEEDED", "UNIT_SPELLCAST_SUCCEEDED" .. " spellID: " .. arg2) end
if(arg2 == 336126 or arg2 == 265221) then
if(arg2 == 336126 or arg2 == 265221 or arg2 == 20594) then
self:UpdateTrinketSammers(unit, arg2)
end
elseif (event == "UNIT_NAME_UPDATE") then
Expand Down Expand Up @@ -586,10 +586,10 @@ function sArenaFrameMixin:UpdateTrinketSammers(unit, spellId)
if (IsHealer(unit)) then
trinket.Cooldown:SetCooldown(GetTime(), 90)
end
-- Dwarf Racial
elseif (spellId == 265221) then
-- Dwarf Racial 20594(normal) and 265221(iron dwarf)
elseif (spellId == 265221 or spellId == 20594) then
if (trinket.Cooldown:GetCooldownDuration() > 30) then
if DLAPI then DLAPI.DebugLog("UpdateTrinket", "Trinket current time left:" .. trinket.Cooldown:GetCooldownDuration()) end
if DLAPI then DLAPI.DebugLog("UpdateTrinket", "Dwarf trinket current time left:" .. trinket.Cooldown:GetCooldownDuration()) end
else
trinket.Cooldown:SetCooldown(GetTime(), 30)
end
Expand Down

0 comments on commit 8c6a8eb

Please sign in to comment.