diff --git a/AquaMai/UX/RandomBgm.cs b/AquaMai/UX/RandomBgm.cs index 545649e3..43ebe35b 100644 --- a/AquaMai/UX/RandomBgm.cs +++ b/AquaMai/UX/RandomBgm.cs @@ -57,5 +57,23 @@ namespace AquaMai.UX return; } } + + [HarmonyPrefix] + [HarmonyPatch(typeof(SoundManager), "PlayBGM")] + public static bool PrePlayBGM(ref int target) + { + switch (target) + { + case 0: + return true; + case 1: + return false; + case 2: + target = 0; + return true; + default: + return false; + } + } } } \ No newline at end of file