For me it seems you are registering the event callback function for that event as the Loot starts in function LootInit.
But you also unregister it there again in the following lines if a setting in your addon is set to true.
So maybe check if the register and unregister are both done within half a second and move the unregister somewhere else then after the loot has finished.
|