The bitmask functions for the LootMode in TrinityCore can be found in the source code of the project Infinite Fusion Calculator. TrinityCore is an open-source MMO framework and emulator for World of Warcraft, and its source code contains the implementation details of various features, including...