feat: add mentor check

This commit is contained in:
Anna
2022-01-13 03:08:04 -05:00
parent 4934f3052a
commit 5b31d47d48
3 changed files with 41 additions and 26 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ internal sealed class PayloadHandler {
this.Ui.Plugin.Functions.SendFriendRequest(player.PlayerName, (ushort) player.World.RowId);
}
if (ImGui.Selectable("Invite to Novice Network")) {
if (this.Ui.Plugin.Functions.IsMentor() && ImGui.Selectable("Invite to Novice Network")) {
// FIXME: only show if character is mentor and target is sprout/returner
this.Ui.Plugin.Functions.InviteToNoviceNetwork(player.PlayerName, (ushort) player.World.RowId);
}