Skip to content

Commit c8a1a08

Browse files
authored
Fix conditional logic for enemy color assignment (#2779)
* Fix conditional logic for enemy color assignment Fixes #2764 Signed-off-by: Aru <[email protected]> * Daisuke's Review: hostile color for non allies hostile entities * weylon's discord review: removed comments --------- Signed-off-by: Aru <[email protected]>
1 parent bada222 commit c8a1a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Intersect.Client.Core/Entities/Player.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,7 @@ public override void DrawName(Color? textColor, Color? borderColor, Color? backg
27042704
}
27052705

27062706
// Enemies in PvP
2707-
if (Globals.Me.IsAllyOf(this) && Globals.Me.MapInstance?.ZoneType != MapZone.Safe && CustomColors.Names.Players.TryGetValue("Hostile", out var hostileColors))
2707+
else if (!Globals.Me.IsAllyOf(this) && Globals.Me.MapInstance?.ZoneType != MapZone.Safe && CustomColors.Names.Players.TryGetValue("Hostile", out var hostileColors))
27082708
{
27092709
textColor = hostileColors.Name;
27102710
borderColor = hostileColors.Outline;

0 commit comments

Comments
 (0)