When loading a game where the player is in a fight mode (melee, ranged or spell combat), the focus mode also captures mobs and items. This is caused by the focus mode initialization.
Fixing this bug revealed a memory leak. The focus modes were created on every initialization. Instead they should only be updated (if they were already created before).
When loading a game where the player is in a fight mode (melee, ranged or spell combat), the focus mode also captures mobs and items. This is caused by the focus mode initialization.