From 8ad6480cf069464c13be1174a9294f824fe48013 Mon Sep 17 00:00:00 2001
From: Mahtra <93822896+MahtraDR@users.noreply.github.com>
Date: Thu, 12 Dec 2024 18:47:01 +1300
Subject: [PATCH] [dr][dr\drinfomon\drdefs.rb] Add fix for Shadow Servants
Clone of https://github.com/elanthia-online/dr-scripts/pull/7020
---
lib/dragonrealms/drinfomon/drdefs.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/dragonrealms/drinfomon/drdefs.rb b/lib/dragonrealms/drinfomon/drdefs.rb
index 68143f1e..3f7f7ce5 100644
--- a/lib/dragonrealms/drinfomon/drdefs.rb
+++ b/lib/dragonrealms/drinfomon/drdefs.rb
@@ -62,6 +62,7 @@ def find_npcs(room_objs)
.map { |obj| obj.sub(/.*alfar warrior.*/, 'alfar warrior') }
.map { |obj| obj.sub(/.*sinewy leopard.*/, 'sinewy leopard') }
.map { |obj| obj.sub(/.*lesser naga.*/, 'lesser naga') }
+ .map { |obj| obj.sub(/.*Shadow Servant.*/, 'Shadow Servant') }
.map { |obj| obj.sub('', '').sub(%r{.*}, '') }
.map { |obj| obj.split(/\sand\s/).last.sub(/(?:\sglowing)?\swith\s.*/, '') }
.map { |obj| obj.strip.scan(/[A-z'-]+$/).first }