Skip to content

Commit

Permalink
Issues fixing this should deal with Softrix#14 and Softrix#45
Browse files Browse the repository at this point in the history
  • Loading branch information
ynazar1 committed Oct 4, 2024
1 parent adc24b8 commit 668c8b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SmartBuff.buffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ function SMARTBUFF_InitSpellIDs()
SMARTBUFF_FLAMETONGUEW = getSpellBookItemByName(318038); --"Flametongue Weapon"
SMARTBUFF_EVERLIVINGW = getSpellBookItemByName(382021); --"Everliving Weapon"
SMARTBUFF_SKYFURY = getSpellBookItemByName(462854); --"Skyfury"
SMARTBUFF_TSWARD = getSpellBookItemByName(462742); --"Thunderstrike Ward" -- Shield!!!
SMARTBUFF_TSWARD = getSpellBookItemByName(462742); --"Thunderstrike Ward" -- Shield
SMARTBUFF_TIDEGUARD = getSpellBookItemByName(445033); --"Tidecaller's Guard" -- Shield. Replaces Flametongue Weapon

-- Shaman buff links
S.ChainShamanShield = { SMARTBUFF_LIGHTNINGSHIELD, SMARTBUFF_WATERSHIELD, SMARTBUFF_EARTHSHIELD };
Expand Down Expand Up @@ -1201,6 +1202,7 @@ function SMARTBUFF_InitSpellList()
{SMARTBUFF_WINDFURYW, 60, SMARTBUFF_CONST_WEAPON},
{SMARTBUFF_FLAMETONGUEW, 60, SMARTBUFF_CONST_WEAPON},
{SMARTBUFF_TSWARD, 60, SMARTBUFF_CONST_WEAPON},
{SMARTBUFF_TIDEGUARD, 60, SMARTBUFF_CONST_WEAPON},
{SMARTBUFF_EVERLIVINGW, 60, SMARTBUFF_CONST_WEAPON},
{SMARTBUFF_EARTHSHIELD, 10, SMARTBUFF_CONST_GROUP, {50,60,70,75,80}, "WARRIOR;DEATHKNIGHT;DRUID;SHAMAN;HUNTER;ROGUE;MAGE;PRIEST;PALADIN;WARLOCK;MONK;DEMONHUNTER;EVOKER;HPET;WPET;DKPET"},
{SMARTBUFF_UNLEASHFLAME, 0.333, SMARTBUFF_CONST_SELF},
Expand Down
4 changes: 3 additions & 1 deletion SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ function SMARTBUFF_OnLoad(self)
self:RegisterEvent("UPDATE_MOUSEOVER_UNIT");
self:RegisterEvent("UNIT_SPELLCAST_FAILED");
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");
self:RegisterEvent("PLAYER_LEVEL_UP");
--auto template events
self:RegisterEvent("ZONE_CHANGED_NEW_AREA")
self:RegisterEvent("GROUP_ROSTER_UPDATE")
Expand Down Expand Up @@ -706,7 +707,8 @@ function SMARTBUFF_OnEvent(self, event, ...)
-- TODO: This is a blizzard bug workaround that spams GROUP_ROSTER_UPDATE during delves
local name, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceID, instanceGroupSize, LfgDungeonID =
GetInstanceInfo()
if event == "ZONE_CHANGED_NEW_AREA" or (event == "GROUP_ROSTER_UPDATE" and instanceType ~= "scenario") then
-- Any other event here
if event == "ZONE_CHANGED_NEW_AREA" or (event == "GROUP_ROSTER_UPDATE" and instanceType ~= "scenario") or event == PLAYER_LEVEL_UP then
SMARTBUFF_SetTemplate()
end
end
Expand Down

0 comments on commit 668c8b7

Please sign in to comment.