Stop logging or phasing to remove last attacked time

The 'last attacked time' count no longer runs down while phased or logged out.
Formatted code in rescue.kod and elusion.kod; was originally going to
modify these but went with the current solution instead.
Fix invalid window overlay addition

RefreshPlayerVisualGear in player.kod was trying to set a non-existent
overlay for torches, if they were used with a soldier shield. Prevented
it from doing this.