Quantcast
WoWInterface: SVN - CharAchievements - Rev 2 - /trunk/CharAchievements.lua

WoWInterface SVN CharAchievements

[/] [trunk/] [CharAchievements.lua] - Rev 2

Compare with Previous | Blame | View Log

--[[--------------------------------------------------------------------
        CharAchievements
        Shows you only your current character's completed acheivements.

        Limitations:

        - This addon alters the functionality of a game API function, so it
          may interfere with the expected behavior of other achievement
          related addons.

        - This addon DOES NOT (and cannot) affect how other people see your
          achievements when they inspect you or view your character on the
          Battle.net website. If you want to limit which achievements other
          people can see, you need to enable the "Display Only Character
          Achievements to Others" option under Interface > Display.
          However, as of November 2012, this option does not appear to
          actually do anything. Please contact Blizzard to report the bug
          and request that they implement better privacy protections!
----------------------------------------------------------------------]]

local get = GetAchievementInfo

GetAchievementInfo = function(...)
        local id, name, points, completed, month, day, year, description, flags, image, rewardText, isGuild, wasEarnedByMe, earnedBy = get(...)

        if not wasEarnedByMe and not (completed and bit.band(flags, ACHIEVEMENT_FLAGS_ACCOUNT) == ACHIEVEMENT_FLAGS_ACCOUNT) then
                return id, name, points, false, nil, nil, nil, description, flags, image, rewardText, isGuild, false, nil
        end

        return id, name, points, wasEarnedByMe, month, day, year, description, flags, image, rewardText, isGuild, wasEarnedByMe, earnedBy
end

Compare with Previous | Blame