Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: release version fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Sep 10, 2023
1 parent 5b7ee68 commit 801df0e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions RotationSolver/Updaters/SocialUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private static async void SayHelloToAuthor()

#if DEBUG
#else
Svc.Targets.Target = c;
Svc.Targets.Target = entity.player;
Chat.Instance.SendMessage($"/{_macroToAuthor[new Random().Next(_macroToAuthor.Count)]} <t>");
#endif
Svc.Chat.PrintChat(new Dalamud.Game.Text.XivChatEntry()
Expand Down Expand Up @@ -218,9 +218,22 @@ internal static string EncryptString(PlayerCharacter player)

internal abstract class ChatEntity : IDisposable
{
protected readonly PlayerCharacter player;
public readonly PlayerCharacter player;

public bool CanTarget => player.IsTargetable();
public bool CanTarget
{
get
{
try
{
return player.IsTargetable();
}
catch
{
return false;
}
}
}

protected SeString Character => new SeString(new IconPayload(BitmapFontIcon.Mentor),
new UIForegroundPayload(31),
Expand Down

0 comments on commit 801df0e

Please sign in to comment.