Handling whether the attacker is melee or ranged