Skip to content

Commit

Permalink
Suppressed version checking in battlegrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Softrix committed Oct 15, 2022
1 parent 1d00f70 commit a065067
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion SmartBuff-Classic.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 11403
## Title: |TInterface\Addons\Smartbuff\Icons\IconEnabled:0|t SmartBuff |cffffffff(Classic Version)|r
## Version: 36.11403
## Version: 37.11403
## Author: |cff20d2ffCodermik (Mik / Castanova on EU-Mirage Raceway) & Aeldra|r (EU-Proudmoore)
## Notes: Cast the most important buffs on you or party, raid, pets and assigned tanks. Use /sbm for options menu.
## DefaultState: Enabled
Expand Down
2 changes: 1 addition & 1 deletion SmartBuff-TBC.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 20504
## Title: |TInterface\Addons\Smartbuff\Icons\IconEnabled:0|t SmartBuff |cffffffff(TBC Classic)|r
## Version: 36.20504
## Version: 37.20504
## Author: |cff20d2ffCodermik (Mik / Castanova on EU-Mirage Raceway) & Aeldra|r (EU-Proudmoore)
## Notes: Cast the most important buffs on you or party, raid, pets and assigned tanks. Use /sbm for options menu.
## DefaultState: Enabled
Expand Down
15 changes: 8 additions & 7 deletions SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
-- Cast the most important buffs on you, tanks or party/raid members/pets.
-------------------------------------------------------------------------------

SMARTBUFF_DATE = "091022";
SMARTBUFF_VERSION = "r36."..SMARTBUFF_DATE;
SMARTBUFF_DATE = "151022 Dev";
SMARTBUFF_VERSION = "r37."..SMARTBUFF_DATE;
SMARTBUFF_VERSIONMIN = 11403; -- min version
SMARTBUFF_VERSIONNR = 30400; -- max version
SMARTBUFF_TITLE = "SmartBuff";
Expand Down Expand Up @@ -459,14 +459,15 @@ local function IsPlayerInGuild()
end

local function SendSmartbuffVersion(player, unit)
-- if ive announced to this player / the player is me then just return.
if player == UnitName("player") then return end
for count,value in ipairs(SmartbuffVerNotifyList) do
if value[1] == player then return end
end
-- not announced, add the player and announce.
tinsert(SmartbuffVerNotifyList, {player, unit, GetTime()})
C_ChatInfo.SendAddonMessage(SmartbuffPrefix, SmartbuffRevision, "WHISPER", player)
local isInBattleground = UnitInBattleground("player")
if not isInBattleground then
tinsert(SmartbuffVerNotifyList, {player, unit, GetTime()})
C_ChatInfo.SendAddonMessage(SmartbuffPrefix, SmartbuffRevision, "WHISPER", player)
end
end

-- SMARTBUFF_OnLoad
Expand Down Expand Up @@ -924,7 +925,7 @@ function SMARTBUFF_SetUnits()
end
end
-- attempt to announce the addon version (if they have it)
if online then SendSmartbuffVersion(name, sRUnit) end
if online then SendSmartbuffVersion(name, sRUnit) end
end
end --end for

Expand Down
2 changes: 1 addition & 1 deletion SmartBuff.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 30400
## Title: |TInterface\Addons\Smartbuff\Icons\IconEnabled:0|t SmartBuff |cffffffff(WOTLK Classic)|r
## Version: 36.30400
## Version: 37.30400
## Author: |cff20d2ffCodermik (Mik / Castanova on EU-Mirage Raceway) & Aeldra|r (EU-Proudmoore)
## Notes: Cast the most important buffs on you or party, raid, pets and assigned tanks. Use /sbm for options menu.
## DefaultState: Enabled
Expand Down
9 changes: 4 additions & 5 deletions localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
SMARTBUFF_WHATSNEW = "\n\n|cffffffff Whats new:|r\n\n"
.." |cffffffffClassic version by Codermik\n"
.." Please report any issues on Curse or Discord.|r\n\n\n"
.." Changes in r36:\n\n"
.." * Fixed various warlock stones such as spellstone,\n"
.." healthstone and soulstones - you can now create\n"
.." and use these created stones.\n\n"
.." * Fixed target buffing.\n"
.." Changes in r37:\n\n"
.." * Fixed a battleground cross-realm issue thats \n"
.." causing some system messages when the addon\n"
.." tries to send version information.\n\n"
.."\n\n"
.." |c0000FF96Many thanks to Chris S. for his donation and\n"
.." supporting my addon development.\n\n"
Expand Down

0 comments on commit a065067

Please sign in to comment.