From 70089a026fed2627ff9c917a9cd92b5f57e15b5a Mon Sep 17 00:00:00 2001
From: notKanon <40945-notKanon@users.noreply.gitgud.io>
Date: Mon, 29 Jan 2024 19:12:32 -0600
Subject: [PATCH] Copy someone else's fix for fairy scores

---
 .../SCORE_OBTAIN.ERB"                                    | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git "a/ERB/\343\202\244\343\203\231\343\203\263\343\203\210\351\226\242\351\200\243/\346\245\275\350\255\234\351\226\242\351\200\243/SCORE_OBTAIN.ERB" "b/ERB/\343\202\244\343\203\231\343\203\263\343\203\210\351\226\242\351\200\243/\346\245\275\350\255\234\351\226\242\351\200\243/SCORE_OBTAIN.ERB"
index a8df443948..c7ca5f1df3 100644
--- "a/ERB/\343\202\244\343\203\231\343\203\263\343\203\210\351\226\242\351\200\243/\346\245\275\350\255\234\351\226\242\351\200\243/SCORE_OBTAIN.ERB"
+++ "b/ERB/\343\202\244\343\203\231\343\203\263\343\203\210\351\226\242\351\200\243/\346\245\275\350\255\234\351\226\242\351\200\243/SCORE_OBTAIN.ERB"
@@ -62,6 +62,15 @@ FOR LOCAL, 0, COUNT
 		RETURNF RESULT
 NEXT
 
+;bugfix custom code, add special check to fairies for Fairy Wars, since most of those tracks are given out for requests, causing them not to count for this function
+IF GROUPMATCH(TARGET, [[サニー]], [[ルナ]], [[スター]], [[大妖精]], [[チルノ]])
+	IF !HAVE_SCORE(10959)
+		IF OBTAIN_SCORE(10959)
+			RETURNF 10959
+		ENDIF
+	ENDIF
+ENDIF
+
 RETURNF -1
 
 ;-----------------------------------------------------------
-- 
GitLab