Shall have a gander at the issue nows.
The clan wars idle issue im trying to solve atm, the issue is NPE's dont always 'go' if you paint the npcs and when they die they can still be there just not visible. The will be stuck in the death animation and cause issues. Running a few debugs to see what states change and which ones will be realiable to use to know its dead. atm i do anim/hp checks and also the !exists but still seems to be getting stuck.
If you teleport from a fight, too. The NPC info will be stuck on what it was when you left so checking hp seems useless. If you teleport, zulrah seems to be there still so checking if its still on the minimap is also useless. IDK if its an osbot issue or if its an osrs issue but its annoying for sure.