I think you can use this script
Code:
/script hooksecurefunc("AchievementFrame_LoadUI", function() for _, v in pairs(AchievementFrameAchievementsContainer.buttons) do v.shield:SetScript("OnEnter", nil) end end)
or make simple addon with same 1 liner in lua file
Code:
/script hooksecurefunc("AchievementFrame_LoadUI", function() for _, v in pairs(AchievementFrameAchievementsContainer.buttons) do v.shield:SetScript("OnEnter", nil) end end)
or you can setup some custom function instead of nil. Default behavior is on line 3447 of Blizzard_AchievementUI.lua
Lua Code:
function AchievementShield_OnEnter(self)
local parent = self:GetParent();
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
if ( parent.accountWide ) then
if ( parent.completed ) then
GameTooltip:AddLine(ACCOUNT_WIDE_ACHIEVEMENT_COMPLETED);
else
GameTooltip:AddLine(ACCOUNT_WIDE_ACHIEVEMENT);
end
GameTooltip:Show();
return;
end
if ( self.earnedBy ) then
GameTooltip:AddLine(format(ACHIEVEMENT_EARNED_BY,self.earnedBy));
local me = UnitName("player")
if ( not self.wasEarnedByMe ) then
GameTooltip:AddLine(format(ACHIEVEMENT_NOT_COMPLETED_BY, me));
elseif ( me ~= self.earnedBy ) then
GameTooltip:AddLine(format(ACHIEVEMENT_COMPLETED_BY, me));
end
GameTooltip:Show();
return;
end
-- pass-through to the achievement button
local func = parent:GetScript("OnEnter");
if ( func ) then
func(parent);
end
AchievementFrameAchievements_CheckGuildMembersTooltip(self);
GameTooltip:Show();
end