@@ -180,14 +180,14 @@ public class PlayerIndicatorsOverlay extends Overlay
 								textLocation.getY() - height),
 							ImageUtil.resizeImage(agilityIcon, height, height));
 					}
-					else if (level >= plugin.getAgilitySecondThreshold())
+					if (level >= plugin.getAgilitySecondThreshold())
 					{
 						OverlayUtil.renderImageLocation(graphics,
 							new Point(textLocation.getX() + agilityIcon.getWidth() + width,
 								textLocation.getY() - height),
 							ImageUtil.resizeImage(agilityIcon, height, height));
 					}
-					else if (level < plugin.getAgilityFirstThreshold())
+					if (level < plugin.getAgilityFirstThreshold())
 					{
 						OverlayUtil.renderImageLocation(graphics,
 							new Point(textLocation.getX() + 5 + width,
/*
 * Copyright (c) 2018, Tomas Slusny <slusnucky@gmail.com>
 * Copyright (c) 2019, Jordan Atwood <nightfirecat@protonmail.com>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package net.runelite.client.plugins.playerindicators;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.Arrays;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.Client;
import net.runelite.api.ItemID;
import net.runelite.api.Player;
import net.runelite.api.Point;
import net.runelite.api.Varbits;
import net.runelite.api.WorldType;
import net.runelite.api.kit.KitType;
import net.runelite.client.game.ClanManager;
import net.runelite.client.ui.overlay.Overlay;
import net.runelite.client.ui.overlay.OverlayPosition;
import net.runelite.client.ui.overlay.OverlayPriority;
import net.runelite.client.ui.overlay.OverlayUtil;
import net.runelite.client.util.ImageUtil;

@Slf4j
@Singleton
public class PlayerIndicatorsOverlay extends Overlay
{
	private static final int ACTOR_OVERHEAD_TEXT_MARGIN = 40;
	private static final int ACTOR_HORIZONTAL_TEXT_MARGIN = 10;
	private static final Object[] NULL_OBJ = new Object[]{null};
	private final BufferedImage agilityIcon = ImageUtil.getResourceStreamFromClass(PlayerIndicatorsPlugin.class,
		"agility.png");
	private final BufferedImage noAgilityIcon = ImageUtil.getResourceStreamFromClass(PlayerIndicatorsPlugin.class,
		"no-agility.png");
	private final BufferedImage skullIcon = ImageUtil.getResourceStreamFromClass(PlayerIndicatorsPlugin.class,
		"skull.png");
	private PlayerIndicatorsPlugin plugin;
	private PlayerIndicatorsService playerIndicatorsService;
	@Inject
	private Client client;
	@Inject
	private ClanManager clanManager;

	@Inject
	public PlayerIndicatorsOverlay(PlayerIndicatorsPlugin plugin, PlayerIndicatorsService playerIndicatorsService)
	{
		this.plugin = plugin;
		this.playerIndicatorsService = playerIndicatorsService;
		setPosition(OverlayPosition.DYNAMIC);
		setPriority(OverlayPriority.MED);
	}

	@Override
	public Dimension render(Graphics2D graphics)
	{
		playerIndicatorsService.forEachPlayer((player, playerRelation) -> drawSceneOverlays(graphics, player, playerRelation));
		return null;
	}

	private void drawSceneOverlays(Graphics2D graphics, Player actor, PlayerRelation relation)
	{
		if (actor.getName() == null || !plugin.getLocationHashMap().containsKey(relation))
		{
			return;
		}

		final List indicationLocations = Arrays.asList(plugin.getLocationHashMap().get(relation));
		final Color color = plugin.getRelationColorHashMap().get(relation);
		final boolean skulls = plugin.isPlayerSkull();
		final String name = actor.getName();
		final int zOffset = actor.getLogicalHeight() + ACTOR_OVERHEAD_TEXT_MARGIN;
		final Point textLocation = actor.getCanvasTextLocation(graphics, name, zOffset);

		if (indicationLocations.contains(PlayerIndicationLocation.ABOVE_HEAD))
		{
			final StringBuilder nameSb = new StringBuilder(name);

			if (plugin.isShowCombatLevel())
			{
				nameSb.append(" (");
				nameSb.append(actor.getCombatLevel());
				nameSb.append(")");
			}

			if (plugin.isUnchargedGlory() &&
				actor.getPlayerAppearance().getEquipmentId(KitType.AMULET) == ItemID.AMULET_OF_GLORY)
			{
				nameSb.append(" (glory)");
			}

			final String builtString = nameSb.toString();
			final int x = graphics.getFontMetrics().stringWidth(builtString);
			final int y = graphics.getFontMetrics().getHeight();

			if (plugin.isHighlightClan() && actor.isClanMember() && plugin.isShowClanRanks() && relation == PlayerRelation.CLAN)
			{
				if (clanManager.getRank(actor.getName()) != null)
				{
					final BufferedImage clanRankImage = clanManager.getClanImage(clanManager.getRank(actor.getName()));
					if (clanRankImage != null)
					{
						OverlayUtil.renderActorTextAndImage(graphics, actor, builtString, color,
							ImageUtil.resizeImage(clanRankImage, y, y), 0, ACTOR_HORIZONTAL_TEXT_MARGIN);
					}
				}
			}
			else if (skulls && actor.getSkullIcon() != null && relation.equals(PlayerRelation.TARGET))
			{

				OverlayUtil.renderActorTextAndImage(graphics, actor, builtString, color,
					ImageUtil.resizeImage(skullIcon, y, y), ACTOR_OVERHEAD_TEXT_MARGIN, ACTOR_HORIZONTAL_TEXT_MARGIN);
			}
			else
			{
				OverlayUtil.renderActorTextOverlay(graphics, actor, builtString, color);
			}
		}
		if (actor.getConvexHull() != null && indicationLocations.contains(PlayerIndicationLocation.HULL))
		{
			OverlayUtil.renderPolygon(graphics, actor.getConvexHull(), color);
		}

		if (indicationLocations.contains(PlayerIndicationLocation.TILE))
		{
			if (actor.getCanvasTilePoly() != null)
			{
				OverlayUtil.renderPolygon(graphics, actor.getCanvasTilePoly(), color);
			}
		}

		if (relation.equals(PlayerRelation.TARGET))
		{
			if (plugin.isShowAgilityLevel() && checkWildy() && plugin.getResultCache().containsKey(actor.getName()))
			{
				if (textLocation == null)
				{
					return;
				}

				final int level = plugin.getResultCache().get(actor.getName()).getAgility().getLevel();

				if (plugin.getAgilityFormat() == PlayerIndicatorsPlugin.AgilityFormats.ICONS)
				{

					final int width = plugin.isShowCombatLevel() ? graphics.getFontMetrics().stringWidth(name)
						+ ACTOR_HORIZONTAL_TEXT_MARGIN : graphics.getFontMetrics().stringWidth(name);

					final int height = graphics.getFontMetrics().getHeight();
					if (level >= plugin.getAgilityFirstThreshold())
					{
						OverlayUtil.renderImageLocation(graphics,
							new Point(textLocation.getX() + 5 + width,
								textLocation.getY() - height),
							ImageUtil.resizeImage(agilityIcon, height, height));
					}
					else if (level >= plugin.getAgilitySecondThreshold())
					{
						OverlayUtil.renderImageLocation(graphics,
							new Point(textLocation.getX() + agilityIcon.getWidth() + width,
								textLocation.getY() - height),
							ImageUtil.resizeImage(agilityIcon, height, height));
					}
					else if (level < plugin.getAgilityFirstThreshold())
					{
						OverlayUtil.renderImageLocation(graphics,
							new Point(textLocation.getX() + 5 + width,
								textLocation.getY() - height),
							ImageUtil.resizeImage(noAgilityIcon, height, height));
					}
				}
				else
				{
					Color agiColor = Color.WHITE;

					if (level >= plugin.getAgilityFirstThreshold())
					{
						agiColor = Color.CYAN;
					}
					else if (level >= plugin.getAgilitySecondThreshold())
					{
						agiColor = Color.GREEN;
					}
					else if (level < plugin.getAgilityFirstThreshold())
					{
						agiColor = Color.RED;
					}

					final String n = level + " " + "Agility";
					OverlayUtil.renderActorTextOverlay(graphics, actor, n, agiColor, 60);
				}
			}
		}
	}

	private boolean checkWildy()
	{
		return client.getVar(Varbits.IN_WILDERNESS) == 1 || WorldType.isAllPvpWorld(client.getWorldType());
	}


}

`boolean firstAgilityIconRendered = false;` i think it might be worth adding a boolean to determine where to place the second agility icon if the first one is rendered just to make it clearer/make sure they don't get rendered on top of each other