diff --git a/HearthWatcher/DungeonRunWatcher.cs b/HearthWatcher/DungeonRunWatcher.cs index 5adcce74b..e41623767 100644 --- a/HearthWatcher/DungeonRunWatcher.cs +++ b/HearthWatcher/DungeonRunWatcher.cs @@ -97,7 +97,7 @@ public async Task Update() public bool UpdateDungeonInfo() { - var dungeonInfo = Reflection.GetDungeonInfo(); + var dungeonInfo = Reflection.Client.GetDungeonInfo(); if(dungeonInfo != null) { for(var i = 0; i < dungeonInfo.Length; i++) diff --git a/HearthWatcher/PVPDungeonRunWatcher.cs b/HearthWatcher/PVPDungeonRunWatcher.cs index fd31a9a13..ade52ffea 100644 --- a/HearthWatcher/PVPDungeonRunWatcher.cs +++ b/HearthWatcher/PVPDungeonRunWatcher.cs @@ -72,7 +72,7 @@ public bool Update() public bool UpdatePVPDungeonInfo() { - var pvpDungeonInfo = Reflection.GetPVPDungeonInfo(); + var pvpDungeonInfo = Reflection.Client.GetPVPDungeonInfo(); if(pvpDungeonInfo != null) { if(pvpDungeonInfo.RunActive) @@ -87,7 +87,7 @@ public bool UpdatePVPDungeonInfo() } else if(pvpDungeonInfo.SelectedLoadoutTreasureDbId > 0) { - var deck = Reflection.GetPVPDungeonSeedDeck(); + var deck = Reflection.Client.GetPVPDungeonSeedDeck(); if(deck == null) return false; var dbfids = deck.Cards.Select(x => HearthDb.Cards.All.TryGetValue(x.Id, out var card) ? card.DbfId : -1).ToList(); diff --git a/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/QuestPicking/BattlegroundsQuestPickingViewModel.cs b/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/QuestPicking/BattlegroundsQuestPickingViewModel.cs index 68f7c64bc..b3467c149 100644 --- a/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/QuestPicking/BattlegroundsQuestPickingViewModel.cs +++ b/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/QuestPicking/BattlegroundsQuestPickingViewModel.cs @@ -101,7 +101,7 @@ private async Task Update() return; } - var choices = Reflection.GetCardChoices(); + var choices = Reflection.Client.GetCardChoices(); if(choices == null) { Message.Error(); @@ -134,7 +134,7 @@ private async void WatchChoices() while(_watchChoices) { await Task.Delay(100); - var choices = Reflection.GetCardChoices(); + var choices = Reflection.Client.GetCardChoices(); if(choices == null) { _watchChoices = false; diff --git a/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Tier7/Tier7PreLobbyViewModel.cs b/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Tier7/Tier7PreLobbyViewModel.cs index ea622df9a..1ae97fc58 100644 --- a/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Tier7/Tier7PreLobbyViewModel.cs +++ b/Hearthstone Deck Tracker/Controls/Overlay/Battlegrounds/Tier7/Tier7PreLobbyViewModel.cs @@ -133,7 +133,7 @@ public async Task Update(bool checkAccountStatus) await Tier7Trial.Update(); TrialTimeRemaining = Tier7Trial.TimeRemaining; TrialUsesRemaining = Tier7Trial.RemainingTrials ?? 0; - Username = Reflection.GetBattleTag()?.Name ?? HSReplayNetOAuth.AccountData.Username; + Username = Reflection.Client.GetBattleTag()?.Name ?? HSReplayNetOAuth.AccountData.Username; UserState = UserState.Authenticated; return; } @@ -142,7 +142,7 @@ public async Task Update(bool checkAccountStatus) UserState = UserState.Loading; TrialTimeRemaining = null; int? allTimeFromApi = null; - var acc = Reflection.GetAccountId(); + var acc = Reflection.Client.GetAccountId(); if(acc != null) { var response = await HSReplayNetOAuth.MakeRequest(c => c.GetAllTimeBGsMMR(acc.Hi, acc.Lo)); @@ -187,7 +187,7 @@ public void Reset() public ICommand MyStatsCommand => new Command(() => { - var acc = Reflection.GetAccountId(); + var acc = Reflection.Client.GetAccountId(); var queryParams = acc != null ? new[] { $"hearthstone_account={acc.Hi}-{acc.Lo}" } : null; var url = Helper.BuildHsReplayNetUrl("battlegrounds/mine/", "bgs_lobby_my_stats", queryParams); Helper.TryOpenUrl(url); diff --git a/Hearthstone Deck Tracker/Controls/Overlay/Mercenaries/MercenariesTaskListViewModel.cs b/Hearthstone Deck Tracker/Controls/Overlay/Mercenaries/MercenariesTaskListViewModel.cs index 67bd68aeb..7471a6a08 100644 --- a/Hearthstone Deck Tracker/Controls/Overlay/Mercenaries/MercenariesTaskListViewModel.cs +++ b/Hearthstone Deck Tracker/Controls/Overlay/Mercenaries/MercenariesTaskListViewModel.cs @@ -45,12 +45,12 @@ public List? Tasks public bool Update() { if(_taskData == null) - _taskData = Reflection.GetMercenariesTasksData(); + _taskData = Reflection.Client.GetMercenariesTasksData(); if(_taskData == null) return false; - var tasks = Reflection.GetMercenariesVisitorTasks(); + var tasks = Reflection.Client.GetMercenariesVisitorTasks(); if(tasks == null || tasks.Count == 0) return false; Tasks = tasks.Select(task => diff --git a/Hearthstone Deck Tracker/GameEventHandler.cs b/Hearthstone Deck Tracker/GameEventHandler.cs index d48459d47..4ae67577d 100644 --- a/Hearthstone Deck Tracker/GameEventHandler.cs +++ b/Hearthstone Deck Tracker/GameEventHandler.cs @@ -212,7 +212,7 @@ private async Task LogIsComplete() private async Task UpdatePostGameRanks(GameStats gs) { - var medalInfo = await Helper.RetryWhileNull(Reflection.GetMedalInfo); + var medalInfo = await Helper.RetryWhileNull(Reflection.Client.GetMedalInfo); if(medalInfo == null) { Log.Warn("Could not get MedalInfo"); @@ -232,7 +232,7 @@ private async Task UpdatePostGameRanks(GameStats gs) private async Task UpdatePostGameBattlegroundsRating(GameStats gs) { - var data = await Helper.RetryWhileNull(Reflection.GetBaconRatingChangeData); + var data = await Helper.RetryWhileNull(Reflection.Client.GetBaconRatingChangeData); if(data == null) { Log.Warn("Could not get battlegrounds rating"); @@ -243,7 +243,7 @@ private async Task UpdatePostGameBattlegroundsRating(GameStats gs) private async Task UpdatePostGameMercenariesRating(GameStats gs) { - var data = await Helper.RetryWhileNull(Reflection.GetMercenariesRatingChangeData); + var data = await Helper.RetryWhileNull(Reflection.Client.GetMercenariesRatingChangeData); if(data == null) { Log.Warn("Could not get mercenaries rating"); @@ -506,7 +506,7 @@ public void HandleGameStart(DateTime timestamp) _game.CacheGameType(); _game.CacheSpectator(); - _game.MetaData.ServerInfo = Reflection.GetServerInfo(); + _game.MetaData.ServerInfo = Reflection.Client.GetServerInfo(); TurnTimer.Instance.Start(_game).Forget(); var selectedDeck = DeckList.Instance.ActiveDeckVersion; diff --git a/Hearthstone Deck Tracker/Hearthstone/BattlegroundsUtils.cs b/Hearthstone Deck Tracker/Hearthstone/BattlegroundsUtils.cs index cd8764787..16b33f214 100644 --- a/Hearthstone Deck Tracker/Hearthstone/BattlegroundsUtils.cs +++ b/Hearthstone Deck Tracker/Hearthstone/BattlegroundsUtils.cs @@ -43,7 +43,7 @@ private static HashSet? AvailableRaces { get { - var races = Reflection.GetAvailableBattlegroundsRaces(); + var races = Reflection.Client.GetAvailableBattlegroundsRaces(); if(races == null) return null; return new HashSet(races.Cast()); diff --git a/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs b/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs index a972f1d7a..c9a5e3620 100644 --- a/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs +++ b/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs @@ -17,8 +17,8 @@ public static class CollectionHelpers { var data = await Task.Run(() => new { - Collection = Reflection.GetFullCollection(), - BattleTag = Reflection.GetBattleTag() + Collection = Reflection.Client.GetFullCollection(), + BattleTag = Reflection.Client.GetBattleTag() }); if(data.Collection?.Cards.Any() ?? false) { @@ -31,8 +31,8 @@ public static class CollectionHelpers { var data = await Task.Run(() => new { - Collection = Reflection.GetMercenariesCollection(), - BattleTag = Reflection.GetBattleTag() + Collection = Reflection.Client.GetMercenariesCollection(), + BattleTag = Reflection.Client.GetBattleTag() }); if(data.Collection?.Any() ?? false) { @@ -110,7 +110,7 @@ private async Task UpdateCollection(Key? key, bool retry = true) { if(!Core.Game.IsRunning) return _lastUsedKey; - var user = Reflection.GetAccountId(); + var user = Reflection.Client.GetAccountId(); if(user == null) { if(_lastUsedKey == null && retry) diff --git a/Hearthstone Deck Tracker/Hearthstone/GameV2.cs b/Hearthstone Deck Tracker/Hearthstone/GameV2.cs index 118ac2d9f..97be56cdc 100644 --- a/Hearthstone Deck Tracker/Hearthstone/GameV2.cs +++ b/Hearthstone Deck Tracker/Hearthstone/GameV2.cs @@ -144,7 +144,7 @@ public Format? CurrentFormat get { if(_currentFormat == FormatType.FT_UNKNOWN) - _currentFormat = (FormatType)HearthMirror.Reflection.GetFormat(); + _currentFormat = (FormatType)HearthMirror.Reflection.Client.GetFormat(); return HearthDbConverter.GetFormat(_currentFormat); } } @@ -174,7 +174,7 @@ public bool IsMulliganDone } } - public bool Spectator => _spectator ?? (bool)(_spectator = HearthMirror.Reflection.IsSpectating()); + public bool Spectator => _spectator ?? (bool)(_spectator = HearthMirror.Reflection.Client.IsSpectating()); public GameMode CurrentGameMode { @@ -197,23 +197,23 @@ public GameType CurrentGameType return _currentGameType; if(_currentMode == Mode.GAMEPLAY) { - _currentGameType = (GameType)HearthMirror.Reflection.GetGameType(); + _currentGameType = (GameType)HearthMirror.Reflection.Client.GetGameType(); return _currentGameType; } return GameType.GT_UNKNOWN; } } - public MatchInfo MatchInfo => _matchInfo ?? (_matchInfo = HearthMirror.Reflection.GetMatchInfo()); + public MatchInfo MatchInfo => _matchInfo ?? (_matchInfo = HearthMirror.Reflection.Client.GetMatchInfo()); private bool _matchInfoCacheInvalid = true; - public BrawlInfo BrawlInfo => _brawlInfo ?? (_brawlInfo = HearthMirror.Reflection.GetBrawlInfo()); + public BrawlInfo BrawlInfo => _brawlInfo ?? (_brawlInfo = HearthMirror.Reflection.Client.GetBrawlInfo()); - public BattlegroundRatingInfo BattlegroundsRatingInfo => _battlegroundsRatingInfo ?? (_battlegroundsRatingInfo = HearthMirror.Reflection.GetBattlegroundRatingInfo()); + public BattlegroundRatingInfo BattlegroundsRatingInfo => _battlegroundsRatingInfo ?? (_battlegroundsRatingInfo = HearthMirror.Reflection.Client.GetBattlegroundRatingInfo()); - public MercenariesRatingInfo MercenariesRatingInfo => _mercenariesRatingInfo ?? (_mercenariesRatingInfo = HearthMirror.Reflection.GetMercenariesRatingInfo()); + public MercenariesRatingInfo MercenariesRatingInfo => _mercenariesRatingInfo ?? (_mercenariesRatingInfo = HearthMirror.Reflection.Client.GetMercenariesRatingInfo()); - public MercenariesMapInfo MercenariesMapInfo => HearthMirror.Reflection.GetMercenariesMapInfo(); + public MercenariesMapInfo MercenariesMapInfo => HearthMirror.Reflection.Client.GetMercenariesMapInfo(); private bool IsValidPlayerInfo(MatchInfo.Player playerInfo, bool allowMissing = true) { @@ -228,7 +228,7 @@ internal async void CacheMatchInfo() if(!_matchInfoCacheInvalid) return; MatchInfo matchInfo; - while((matchInfo = HearthMirror.Reflection.GetMatchInfo()) == null || !IsValidPlayerInfo(matchInfo.LocalPlayer) || !IsValidPlayerInfo(matchInfo.OpposingPlayer, IsMercenariesMatch)) + while((matchInfo = HearthMirror.Reflection.Client.GetMatchInfo()) == null || !IsValidPlayerInfo(matchInfo.LocalPlayer) || !IsValidPlayerInfo(matchInfo.OpposingPlayer, IsMercenariesMatch)) { Log.Info($"Waiting for matchInfo... (matchInfo={matchInfo}, localPlayer={matchInfo?.LocalPlayer?.Name}, opposingPlayer={matchInfo?.OpposingPlayer?.Name})"); await Task.Delay(1000); @@ -255,17 +255,17 @@ string GetName(MatchInfo.Player player) internal async void CacheGameType() { - while((_currentGameType = (GameType)HearthMirror.Reflection.GetGameType()) == GameType.GT_UNKNOWN) + while((_currentGameType = (GameType)HearthMirror.Reflection.Client.GetGameType()) == GameType.GT_UNKNOWN) await Task.Delay(1000); } - internal void CacheSpectator() => _spectator = HearthMirror.Reflection.IsSpectating(); + internal void CacheSpectator() => _spectator = HearthMirror.Reflection.Client.IsSpectating(); - internal void CacheBrawlInfo() => _brawlInfo = HearthMirror.Reflection.GetBrawlInfo(); + internal void CacheBrawlInfo() => _brawlInfo = HearthMirror.Reflection.Client.GetBrawlInfo(); - internal void CacheBattlegroundRatingInfo() => _battlegroundsRatingInfo = HearthMirror.Reflection.GetBattlegroundRatingInfo(); + internal void CacheBattlegroundRatingInfo() => _battlegroundsRatingInfo = HearthMirror.Reflection.Client.GetBattlegroundRatingInfo(); - internal void CacheMercenariesRatingInfo() => _mercenariesRatingInfo = HearthMirror.Reflection.GetMercenariesRatingInfo(); + internal void CacheMercenariesRatingInfo() => _mercenariesRatingInfo = HearthMirror.Reflection.Client.GetMercenariesRatingInfo(); internal void InvalidateMatchInfoCache() => _matchInfoCacheInvalid = true; diff --git a/Hearthstone Deck Tracker/Hearthstone/MercenariesCoins.cs b/Hearthstone Deck Tracker/Hearthstone/MercenariesCoins.cs index eaeaa983f..83cfd7180 100644 --- a/Hearthstone Deck Tracker/Hearthstone/MercenariesCoins.cs +++ b/Hearthstone Deck Tracker/Hearthstone/MercenariesCoins.cs @@ -10,7 +10,7 @@ public class MercenariesCoins public static List Update() { var deltas = new List(); - var data = Reflection.GetMercenariesInCollection(); + var data = Reflection.Client.GetMercenariesInCollection(); if(data == null) return deltas; foreach(var merc in data) diff --git a/Hearthstone Deck Tracker/Hearthstone/QueueEvents.cs b/Hearthstone Deck Tracker/Hearthstone/QueueEvents.cs index 94fb43484..62a63216b 100644 --- a/Hearthstone Deck Tracker/Hearthstone/QueueEvents.cs +++ b/Hearthstone Deck Tracker/Hearthstone/QueueEvents.cs @@ -61,7 +61,7 @@ public void Handle(QueueEventArgs e) else { var selectedId = GetSelectedDeckId(_game.CurrentMode); - _game.CurrentSelectedDeck = selectedId > 0 ? Reflection.GetDecks()?.FirstOrDefault(deck => deck.Id == selectedId) : null; + _game.CurrentSelectedDeck = selectedId > 0 ? Reflection.Client.GetDecks()?.FirstOrDefault(deck => deck.Id == selectedId) : null; } if(!Config.Instance.AutoDeckDetection) return; @@ -112,12 +112,12 @@ private void AutoSelectArenaDeck() private static long GetSelectedDeckId(Mode mode) { - var selectedDeckId = Reflection.GetSelectedDeckInMenu(); + var selectedDeckId = Reflection.Client.GetSelectedDeckInMenu(); if(selectedDeckId > 0) return selectedDeckId; if(mode != TAVERN_BRAWL) return 0; - return Reflection.GetEditedDeck()?.Id ?? 0; + return Reflection.Client.GetEditedDeck()?.Id ?? 0; } } } diff --git a/Hearthstone Deck Tracker/Hearthstone/Watchers.cs b/Hearthstone Deck Tracker/Hearthstone/Watchers.cs index 3213024d5..556e3c00b 100644 --- a/Hearthstone Deck Tracker/Hearthstone/Watchers.cs +++ b/Hearthstone Deck Tracker/Hearthstone/Watchers.cs @@ -99,36 +99,36 @@ public bool InPVPDungeonRunMatch public class HearthMirrorPackProvider : IPackProvider { - public List GetCards() => Reflection.GetPackCards(); - public int GetPackId() => Reflection.GetLastOpenedBoosterId(); + public List GetCards() => Reflection.Client.GetPackCards(); + public int GetPackId() => Reflection.Client.GetLastOpenedBoosterId(); } public class HearthMirrorArenaProvider : IArenaProvider { public ArenaInfo? GetArenaInfo() => DeckImporter.FromArena(false); - public HearthMirror.Objects.Card[]? GetDraftChoices() => Reflection.GetArenaDraftChoices()?.ToArray(); + public HearthMirror.Objects.Card[]? GetDraftChoices() => Reflection.Client.GetArenaDraftChoices()?.ToArray(); } public class HearthMirrorFriendlyChallengeProvider : IFriendlyChallengeProvider { - public bool DialogVisible => Reflection.IsFriendlyChallengeDialogVisible(); + public bool DialogVisible => Reflection.Client.IsFriendlyChallengeDialogVisible(); } public class HearthMirrorRewardTrackProvider : IExperienceProvider { - public RewardTrackData GetRewardTrackData() => Reflection.GetRewardTrackData(); + public RewardTrackData GetRewardTrackData() => Reflection.Client.GetRewardTrackData(); } public class HearthMirrorQueueProvider : IQueueProvider { - public FindGameState? FindGameState => Reflection.GetFindGameState(); + public FindGameState? FindGameState => Reflection.Client.GetFindGameState(); } public class HearthMirrorBaconProvider : IBaconProvider { - public bool? IsShopOpen => Reflection.IsShopOpen(); - public bool? IsJournalOpen => Reflection.IsJournalOpen(); - public bool? IsPopupShowing => Reflection.IsPopupShowing(); - public bool? IsFriendslistOpen => Reflection.IsFriendsListVisible(); + public bool? IsShopOpen => Reflection.Client.IsShopOpen(); + public bool? IsJournalOpen => Reflection.Client.IsJournalOpen(); + public bool? IsPopupShowing => Reflection.Client.IsPopupShowing(); + public bool? IsFriendslistOpen => Reflection.Client.IsFriendsListVisible(); } } diff --git a/Hearthstone Deck Tracker/HsReplay/PackDataGenerator.cs b/Hearthstone Deck Tracker/HsReplay/PackDataGenerator.cs index 1eab92e49..321381653 100644 --- a/Hearthstone Deck Tracker/HsReplay/PackDataGenerator.cs +++ b/Hearthstone Deck Tracker/HsReplay/PackDataGenerator.cs @@ -16,7 +16,7 @@ public static class PackDataGenerator Log.Error("Invalid card count: " + cards.Length); return null; } - var accId = HearthMirror.Reflection.GetAccountId(); + var accId = HearthMirror.Reflection.Client.GetAccountId(); if(accId == null || accId.Hi == 0 || accId.Lo == 0) { Log.Error("Could not get account id"); diff --git a/Hearthstone Deck Tracker/Importing/DeckImporter.cs b/Hearthstone Deck Tracker/Importing/DeckImporter.cs index ca5028a13..b0c0bf5f9 100644 --- a/Hearthstone Deck Tracker/Importing/DeckImporter.cs +++ b/Hearthstone Deck Tracker/Importing/DeckImporter.cs @@ -36,7 +36,7 @@ public static List ConstructedDecksCache public static ArenaInfo ArenaInfoCache { - get { return _arenaInfoCache ??= Reflection.GetArenaDeck(); } + get { return _arenaInfoCache ??= Reflection.Client.GetArenaDeck(); } set { _arenaInfoCache = value; } } @@ -76,7 +76,7 @@ public static List FromConstructed(bool refreshCache = true) } private static List GetConstructedDecks() - => Reflection.GetDecks()?.Where(IsValidDeck).ToList() ?? new List(); + => Reflection.Client.GetDecks()?.Where(IsValidDeck).ToList() ?? new List(); private static bool IsValidDeck(HearthMirror.Objects.Deck deck) { @@ -112,7 +112,7 @@ public static List FromBrawl() } private static List GetBrawlDecks() - => Reflection.GetDecks()?.Where(x => x.Type == BrawlDeckType).ToList() ?? new List(); + => Reflection.Client.GetDecks()?.Where(x => x.Type == BrawlDeckType).ToList() ?? new List(); public static List GetImportedDecks(IEnumerable decks, IList localDecks) { @@ -185,7 +185,7 @@ public static List GetImportedDecks(IEnumerable x.Count)}"); else if(log) diff --git a/Hearthstone Deck Tracker/Utility/Battlegrounds/BattlegroundsLastGames.cs b/Hearthstone Deck Tracker/Utility/Battlegrounds/BattlegroundsLastGames.cs index 51b6c9d35..df8c6b0d9 100644 --- a/Hearthstone Deck Tracker/Utility/Battlegrounds/BattlegroundsLastGames.cs +++ b/Hearthstone Deck Tracker/Utility/Battlegrounds/BattlegroundsLastGames.cs @@ -40,7 +40,7 @@ private static BattlegroundsLastGames Load() private async Task GetPlayerId() { - var accountId = await Helper.RetryWhileNull(Reflection.GetAccountId, 2, 3000); + var accountId = await Helper.RetryWhileNull(Reflection.Client.GetAccountId, 2, 3000); return accountId != null ? $"{accountId.Hi}_{accountId.Lo}" : null; } diff --git a/Hearthstone Deck Tracker/Utility/Helper.cs b/Hearthstone Deck Tracker/Utility/Helper.cs index 03e2e5a6d..344030fd6 100644 --- a/Hearthstone Deck Tracker/Utility/Helper.cs +++ b/Hearthstone Deck Tracker/Utility/Helper.cs @@ -361,7 +361,7 @@ public static async Task GetCurrentRegion() { for(var i = 0; i < 10; i++) { - var accId = HearthMirror.Reflection.GetAccountId(); + var accId = HearthMirror.Reflection.Client.GetAccountId(); if(accId != null) { var region = GetRegion(accId.Hi); diff --git a/Hearthstone Deck Tracker/Windows/OverlayWindow.Input.cs b/Hearthstone Deck Tracker/Windows/OverlayWindow.Input.cs index 282d91797..98a9d9ac9 100644 --- a/Hearthstone Deck Tracker/Windows/OverlayWindow.Input.cs +++ b/Hearthstone Deck Tracker/Windows/OverlayWindow.Input.cs @@ -418,7 +418,7 @@ private async void HideCardsWhenFriendsListOpen(Point clickPos) if(_isFriendsListOpen == null) { await Task.Delay(500); - _isFriendsListOpen = Reflection.IsFriendsListVisible(); + _isFriendsListOpen = Reflection.Client.IsFriendsListVisible(); } if (_isFriendsListOpen.Value) { diff --git a/Hearthstone Deck Tracker/Windows/OverlayWindow.Tooltips.cs b/Hearthstone Deck Tracker/Windows/OverlayWindow.Tooltips.cs index a9f2e1356..f0267dcda 100644 --- a/Hearthstone Deck Tracker/Windows/OverlayWindow.Tooltips.cs +++ b/Hearthstone Deck Tracker/Windows/OverlayWindow.Tooltips.cs @@ -288,7 +288,7 @@ private void UpdateCardTooltip() if(_mouseInput == null) HookMouse(); } - else if(_mouseInput != null && !((_isFriendsListOpen.HasValue && _isFriendsListOpen.Value) || Reflection.IsFriendsListVisible())) + else if(_mouseInput != null && !((_isFriendsListOpen.HasValue && _isFriendsListOpen.Value) || Reflection.Client.IsFriendsListVisible())) UnHookMouse(); } else if(_mouseInput != null)