playerindicators: Clan indicators fix (#1796)
* 2.1.8.0 version bump * Fix's clan name double rendering bug * fix bug where clan memebers can show up as targets
This commit is contained in:
@@ -131,14 +131,12 @@ public class PlayerIndicatorsOverlay extends Overlay
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (skulls && actor.getSkullIcon() != null && relation.equals(PlayerRelation.TARGET))
|
||||
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);
|
||||
|
||||
@@ -72,7 +72,7 @@ public class PlayerIndicatorsService
|
||||
|
||||
target = (player) -> (!team.test(player) && !clan.test(player)
|
||||
&& !client.isFriended(player.getName(), false) && PvPUtil.isAttackable(client, player)
|
||||
&& !client.getLocalPlayer().equals(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.TARGET));
|
||||
&& !client.getLocalPlayer().equals(player) && !clan.test(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.TARGET));
|
||||
|
||||
caller = (player) -> (plugin.isCaller(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.CALLER));
|
||||
|
||||
@@ -80,7 +80,7 @@ public class PlayerIndicatorsService
|
||||
|
||||
other = (player) ->
|
||||
(!PvPUtil.isAttackable(client, player) && !client.getLocalPlayer().equals(player)
|
||||
&& !team.test(player) && !player.isClanMember() && !client.isFriended(player.getName(), false)
|
||||
&& !team.test(player) && !clan.test(player) && !client.isFriended(player.getName(), false)
|
||||
&& plugin.getLocationHashMap().containsKey(PlayerRelation.OTHER));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user