From fec2817670f9b3864bfa083a18dbea28a7858b68 Mon Sep 17 00:00:00 2001 From: Clansty Date: Wed, 29 Oct 2025 01:29:17 +0800 Subject: [PATCH] [+] TapInHoldFix Co-Authored-By: ds_xiaoyi <102014915+ds-xiaoyi@users.noreply.github.com> --- AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs diff --git a/AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs b/AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs new file mode 100644 index 00000000..40016f97 --- /dev/null +++ b/AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs @@ -0,0 +1,19 @@ +using AquaMai.Config.Attributes; +using HarmonyLib; +using Monitor; + +namespace AquaMai.Mods.Fancy.GamePlay; + +[ConfigSection("Hold 夹 Tap", + zh: "让普通模式也能像宴会场一样,在 Hold 音符期间正常判定其他音符,兼容特殊设计谱面(如飞行志)\n实验性功能,未测试对其他谱面的影响", + en: "Allow normal mode to judge Tap notes normally during Hold notes, like in UTAGE. Compatible with specially designed charts\nExperimental feature, untested on other charts")] +public class TapInHoldFix +{ + [HarmonyPatch(typeof(NoteBase), "IsJudgeNote")] + [HarmonyPrefix] + public static bool IsJudgeNote(NoteBase __instance, ref bool __result) + { + __result = !__instance.IsEnd(); + return false; + } +} \ No newline at end of file