File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,12 @@ function Module:OnTooltipShow(tooltip)
4141 local _ , itemLink = tooltip :GetItem ();
4242 if not itemLink then return end
4343
44- if not C_Item .IsItemKeystoneByID (itemLink :match (' item:(%d+)' )) then return end
45-
46- local mapId = itemLink :match (string.format (' :%s:(%%d+):' , Enum .ItemModification .KeystoneMapChallengeModeID ));
44+ local mapId = itemLink :match (' keystone:%d+:(%d+)' );
45+ if not mapId then
46+ local itemId = itemLink :match (' item:(%d+)' );
47+ if not itemId or not C_Item .IsItemKeystoneByID (itemId ) then return end
48+ mapId = itemLink :match (string.format (' :%s:(%%d+):' , Enum .ItemModification .KeystoneMapChallengeModeID ));
49+ end
4750 if not mapId then return end
4851
4952 local overallInfo = Util :GetOverallInfoByMapId (mapId );
You can’t perform that action at this time.
0 commit comments