diff --git a/CoreBots.cs b/CoreBots.cs
index 842690ff7..711a06491 100644
--- a/CoreBots.cs
+++ b/CoreBots.cs
@@ -3751,35 +3751,9 @@ private void KilledDungeonMonsterListener(int monsterMapID)
public bool IsMember = false;
///
- /// Checks whether the player is Upholder
+ /// Checks whether the player is an Upholder
///
- public bool isUpholder()
- {
- string[] upholder = new string[]
- {
- "1st Upholder",
- "2nd Upholder",
- "3rd Upholder",
- "4th Upholder",
- "5th Upholder",
- "6th Upholder",
- "7th Upholder",
- "8th Upholder",
- "9th Upholder",
- "10th Upholder",
- "11th Upholder",
- "12th Upholder",
- "13th Upholder",
- "14th Upholder",
- "15th Upholder",
- };
-
- foreach (string badge in upholder)
- if (HasWebBadge(badge))
- return true;
-
- return false;
- }
+ public bool IsUpholder() => Badges.Any(badge => badge.Name.Contains("Upholder"));
///
/// Retrieves the username from a game object or falls back to the player's username.
diff --git a/Other/MergeShops/StarswordMerge[Upholder].cs b/Other/MergeShops/StarswordMerge[Upholder].cs
index ef3d9fdd8..d30760bf3 100644
--- a/Other/MergeShops/StarswordMerge[Upholder].cs
+++ b/Other/MergeShops/StarswordMerge[Upholder].cs
@@ -39,6 +39,11 @@ public void ScriptMain(IScriptInterface Bot)
public void BuyAllMerge(string? buyOnlyThis = null, mergeOptionsEnum? buyMode = null)
{
+ if (!Core.isUpholder())
+ {
+ Core.Logger("Upholder Required.");
+ return;
+ }
DR.StoryLine();
Core.BuyItem("dragonroad", 2342, "DragonRoad Merge Access Card");
//Only edit the map and shopID here