mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 12:17:26 +08:00
[+] ForceNonTarget
This commit is contained in:
@@ -68,6 +68,15 @@ public class BasicFix
|
|||||||
ServicePointManager.ServerCertificateValidationCallback = null;
|
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)
|
public static void DoCustomPatch(HarmonyLib.Harmony h)
|
||||||
{
|
{
|
||||||
if (typeof(GameManager).GetMethod("CalcSpecialNum") is null) return;
|
if (typeof(GameManager).GetMethod("CalcSpecialNum") is null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user