Ranged attack fix