Fix swing timer for ranged attacks

Ticket number: 139