static void Postfix(GFightUnit __instance, GFightUnit attacker, bool isSimulate, ref float __result) { bool isEnemyAttacker = attacker.getTeamId() == 1; if (_settings.AlwaysDodge && isEnemyAttacker && !isSimulate) { __result = 1000.0f; } }
static void Postfix(GFightUnit __instance, ref int __result) { bool isEnemyMark = __instance.getTeamId() == 1; if (_settings.MovementRangeValue > 0 && !isEnemyMark) { __result = Math.Max(__result, _settings.MovementRangeValue); } }