Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Serkan Yazıcıoğlu committed Sep 26, 2024
1 parent 3cc98c1 commit 5549fa9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1954,12 +1954,15 @@ function Core:SetRosterInfo()
local guildKey = Core:GetGuildKey();

if (guildKey) then
local me = GetCurrentCharacterUniqueKey();
local isKeystonesEnabled = getGowGameVersionId() == 1;

GOW.DB.profile.guilds[guildKey].rosterRefreshTime = GetServerTime();
GOW.DB.profile.guilds[guildKey].motd = GetGuildRosterMOTD();
GOW.DB.profile.guilds[guildKey].roster = {};
GOW.DB.profile.guilds[guildKey].ranks = {};

if (getGowGameVersionId() == 1) then
if (isKeystonesEnabled) then
GOW.DB.profile.guilds[guildKey].keystones = {};
GOW.DB.profile.guilds[guildKey].keystonesRefreshTime = nil;
end
Expand All @@ -1982,11 +1985,11 @@ function Core:SetRosterInfo()
officerNote = officernote
};

if (getGowGameVersionId() == 1 and C_MythicPlus.IsMythicPlusActive()) then
if (isKeystonesEnabled and C_MythicPlus.IsMythicPlusActive()) then
local keystoneLevel = nil;
local keystoneMapId = nil;

if (name == GetCurrentCharacterUniqueKey()) then
if (name == me) then
keystoneLevel = C_MythicPlus.GetOwnedKeystoneLevel();
keystoneMapId = C_MythicPlus.GetOwnedKeystoneMapID();
else
Expand Down

0 comments on commit 5549fa9

Please sign in to comment.