Skip to content

Commit

Permalink
[+] ForceNonTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 19, 2024
1 parent 42b8b9c commit b3cb083
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions AquaMai/Fix/BasicFix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ private static void OnNetHttpClientCreate()
ServicePointManager.ServerCertificateValidationCallback = null;
}

[HarmonyPostfix]
[HarmonyPatch(typeof(MAI2System.Config), "IsTarget")]
private static bool ForceNonTarget(ref bool __result)
{
// Who teaching others to set Target=1?!
__result = false;
return false;
}

public static void DoCustomPatch(HarmonyLib.Harmony h)
{
if (typeof(GameManager).GetMethod("CalcSpecialNum") is null) return;
Expand Down

0 comments on commit b3cb083

Please sign in to comment.