public static boolean setHitType(final IClientContext ctx, final HitType hitType) {
		if (getCurrentHitType(ctx) == hitType) {
			return true;
		}

		final org.powerbot.script.rt6.Component buttonWidget = hitType.getButtonWidget(ctx);
		if (buttonWidget.valid()) {
			final Rectangle rect = buttonWidget.boundingRect();
			rect.height -= 10;
			TargetableRectangle targetableRectangle = new TargetableRectangle(ctx, rect);

			if (targetableRectangle.interact("Select") && Condition.wait(new Callable<Boolean>() {
				@Override
				public Boolean call() throws Exception {
					return getCurrentHitType(ctx) == hitType;
				}
			}, 175, 10)) {
				ctx.sleep(400);
			}
		}

		return getCurrentHitType(ctx) == hitType;
	}